Android :: Hosting Custom KML For Using In Google Maps Mobile?
Jul 14, 2010
I am new to Android and so I may be missing some very basic things here. I am trying to host custom KML files on a server behind my firewall and display those KML files on the Android emulator. I started by writing a simple app that uses an Intent to display the overlay and pointing the app at geo:0,0?q=
http://code.google.com/apis/kml/documentation/KML_Samples.kml. This works in the emulator.
Next I downloaded that KML file and posted it on my web server (Apache 2.2 on Fedora). I added an AddType directive for the .kml extension and restarted HTTPD. When I point my simple app's Intent to my internally hosted KML file I get the error "The community map could not be displayed because it contains errors." I added some code to try and download the KML file independently of the KML so I could check the status line and the like:
final HttpClient client = new DefaultHttpClient();
final HttpGet get = new HttpGet("http://mycompany.com/data/KML_Samples.kml");
try { final HttpResponse resp = client.execute(get);
android.util.Log.e("MapOverlays", resp.toString());
} catch (Throwable t) {
android.util.Log.e("MapOverlays", "Exception", t);
}
With a breakpoint on the first Log message line I can inspect the results:
statusline = "HTTP/1.1 200 OK"
Content-Type: application/vnd.google-earth.kml+xml
Here's the Intent I'm using:
final Intent intent = new Intent(
android.content.Intent.ACTION_VIEW,
Uri.parse("geo:0,0?q=http://mycompany.com/data/KML_Samples.kml"));
startActivity(intent);
So the two main questions are
What do I need to do to get KML loaded from a private server?
What tools are available (if any) to determine what is wrong with what I've done (something more informative than "The community map...")?
View 1 Replies
Jan 5, 2010
Are there any apps for Android like this one for iPhone?
AccuTerra Mobile | Home
I know about MyTracks, but it doesn't have access to maps in when you have no service.I would LOVE to find an "AccuTerra-like" app for Android that could replace a stand-a-lone GPS.for hiking specifically.
View 3 Replies
View Related
Feb 3, 2010
Has anyone been able to get this new version of Google Maps that syncs Starred places from your desktop to your phone? Official Google Mobile Blog: Take your places and searches to go with Google Maps for mobile). This feature (accessing starred places) is one of the few things I miss about my Windows Mobile phone.
View 9 Replies
View Related
Aug 10, 2010
Dear all I m a final year student and want to know is it possible to make an application that can find the location of mobile on your pc via google maps or GPS if it is possible then how it is possible?
View 3 Replies
View Related
Oct 11, 2009
I was just wondering if anybody knows of a mobile image hosting website that will allow me to upload wh image from my HTC hero and then host it and give me the picture link once uploaded? I've tried one or two but they say 'upload disabled' when I've tried, so I just wondered if anyone here had successfully used one.
View 9 Replies
View Related
Jul 22, 2010
I created a custom map in Google Maps "My Maps". Now i want to show that map on an android device, but not just opening it as a web page but showing it using MapView or smth similar. I want to be able to center on a place I have marked on the map etc. My custom map is a map containing the location of all gas stations in a city.
View 1 Replies
View Related
Nov 4, 2010
I've been stuck for ages now trying to implement threading or background image loading for a custom tile overlay class I've been working on. I'm pretty useless when it comes to Java so threading isn't something I've had any experience with. Basically I have extended an ItemizedOverlay and in the draw() method calculate the tiles I need to display over the standard google tiles then fetch those images with a URLConnection and using BitmapFactory decode them and draw them to the canvas at the correct position on the screen so that the images are on top of the google tiles with about 50% opacity (the custom tiles are cellphone network coverage png's which are used for our web app). I initially got this all working with the tiles loading in the correct places but hit issues with memory and "freezing" while panning so implemented some basic caching and memory management to only store the tiles that are displayed on the map in memory and when downloading a tile store it to SD card.
Then I figured the freezing while panning is due to the blocking nature of downloading the images so, have been trying to implement threading. I created a class that extends AsyncTask to download the images in the background and store them to SD, in the onPostExecute method I then try to draw all the tiles. But onPostExecute never seems to fire, now I know that the AsyncTask has to be called in the main ui thread so tried to debug the execution with Thread.currentThread().getId() calls through out the code. The thread Ids through out is 1 and then 10 for the doInBackground method for the AsyncTask. Now I'm not sure if 1 is the main UI thread or not. In the extended MapActivity class I have, the onCreate method's Thread.currentThread().getId() returns 1 but I'm not sure if the MapActivity class is executed in the main ui thread? Here Romain Guy mentions that the onPostExecute method should have @Override but when I do that eclipse flags it as an error
"The method onPostExecute(Boolean...) of type TileCache.ImageLoadTask must override or implement a supertype method"
So I guess something is wrong there but the only fix eclipse offers is to remove the @Override
So I guess with out post all my source code, the question's I have are:
Is the MapActivity onCreate method called in the main ui thread?
What does the @Override error mean? or why does it show that error
Does anyone have an example of a custom tile overlay implementation with background image loading and tile caching?
View 1 Replies
View Related
May 19, 2010
I'm going away few days (Volcano permitting) and was just wondering if I use Google Maps outside of the UK will I need mobile internet.
Can I use Google Maps with the GPS turned on and the mobile internet turned off?
View 2 Replies
View Related
Apr 7, 2009
I've been working on my project for a while and have decided to share it's source so that I can get help from people and finish it and post it to the market (it's a highly addictive and fun card game). However, I have published it on google code at:
http://code.google.com/p/bestcardgameever-android/
And when I tried to download it with a friend that can help I kept getting messages saying that it is not an android project from eclipse I'd appreciate it if somebody could tell me exactly what needs to be uploaded and what doesn't need and how can I make it work - if you have done it before - you probably can easily help Thanks! also, if you can and want to generally join the project as a developer graphics person or web designer.
View 2 Replies
View Related
Apr 23, 2010
I currently running Smoked Glass V6.0.1. I tried updated my google maps to 4.1.1 and I get a invalid signature. According to google mobile help forums I am receiving this error because my build number doesn't match specific build numbers their application is designed to work with.
Has anyone else experience this problem?
View 8 Replies
View Related
Nov 14, 2010
Have anybody tried this on Dinc? Android-wired-tether - Project Hosting on Google Code
View 1 Replies
View Related
Jul 17, 2010
I have tried everything found several wired tether options none work. I will start with the market pdanet randomly looses connection (if you have the answer please this seems easiest rout)
easy tether just plain doesn't work not sure why I think it's cause I am on windows 7 x64. Now I found a couple out of the market that also don't work android-wired-tether - Project Hosting on Google Code not sure how to get it to work and this azilink - Project Hosting on Google Code. This I got as far as trying to load it and I get OpenVPNClient start azilink_p1634: process started and then immediately exited: []. I like pdanet but it just keeps dropping connection.
View 10 Replies
View Related
Sep 18, 2010
Frustrating - but apparently the capability is I can customize a route online with Google Maps, save it to my maps and send it to the phone but it sends the static map.Ridiculously, all this power and I can't take those directions from the PC and turn them into turn by turn directions on the phone.
View 3 Replies
View Related
Sep 25, 2010
I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps
CODE:.....
Android mainfest
CODE:..................
View 4 Replies
View Related
Jul 12, 2012
what is the path to the offline map files saved by Google Maps 6.9?
View 9 Replies
View Related
Mar 5, 2009
Is Google Latitude available in the UK or not, because it doesn't seem to be working for me? I have received the RC9 update for G1 and have Google Maps 3.0. Is there an a Google Latitude application that I should have or do I access everything through Google Maps? When I go the www.google.com/latitude on my G1, it offers me the option of "launching" Latitude but it just takes me to Google Maps. From there, I cannot see the locations of my Google "friends" (who have agreed to show location), neither does my own location show up on the Latitude homepage on the web (I have settings turned to "detect my location automatically").
View 13 Replies
View Related
Sep 24, 2010
I want to create a mapview marker with 4 elements:
- picture (of user)
- background
- text (username)
- Arrow to show an direction
OverlayItem.setMarker() accept only a drawable.
How can I create an drawable with 4 Items? Or can i add an View as marker to overlayItem?
any ideas?
View 1 Replies
View Related
Oct 19, 2010
I'm running Cyanogenmod 6. I just noticed that I can't find Google voice or Google maps in the market. I do have the apps installed, but can't see them int he market to get updates. I tried out LFY1.7 and Ultimate Droid 1.0.0, and see the same issue.
View 5 Replies
View Related
Apr 16, 2014
I am using Nexus 4 Bought from US thro my friend.Current Android version id 4.4.2..My Service Provider is Airtel. All my google applications like Gmail, Maps, Play,Google Plus are working fine in WIFI.But when i try to refresh or update these application thro Airtel 3g,i am getting No Connection Error.
All my 3rd party apps like Facebook,Whatsapp are working fine in 3G.
View 3 Replies
View Related
Apr 17, 2013
I'm using the latest version of Google Maps on JB 4.2.2 [Nexus 4]..I noticed that I cannot edit the names of my locations in "My Places" in the phone app. So I used Google Bookmarks (google.com/bookmarks) from my PC to edit/rename My Places. However, the names do not sync or carry through to the Google Maps app on the phone. The names in the app are still the generic names, coordinates or street names.
Is there any way to change the names of My Places and get them to sync with the phone app? Really baffling!
View 2 Replies
View Related
May 21, 2010
I've started to develop in Android 2 weeks ago and until now, I like it! Currently I am working on a project where I have to display an individual map (not a google maps view, I'd like to display the map of a building's interior) with which the user can interact(mark positions, etc.).
Is there a framework or an existing app that I could use? Of course I searched the internet but could not find anything. Perhaps it is in some way possible to use the google maps API?
View 1 Replies
View Related
Sep 4, 2012
I'm searching for an app or mod to google maps that allow to view maps (satellite view) offline
View 1 Replies
View Related
May 31, 2010
Free Domain Name
Unlimited Space
Unlimited Emails
Unlimited Subdomains
Unlimited Databases
Php, Mysql, Perl, Ruby Support
Free Script Library
10 Gb Bandwidth/Month
Free Site Builder
Free 500 Templates
99% Up Time Guaranteed
Free Technical Support
http://indiaebazar.com/biswajit/prodesc.php?pid=53&rid=biswajit
View 2 Replies
View Related
May 12, 2010
I am using Sygic Mobile Maps 10 on my N1 and now got if for my girlfriend's i7500. It installed fine but when I start it up and try to activate a map, the screen where it should show the device id is just empty (it shows a -). If I go to the About screen, it also doesn't show a device id. I contacted Sygic already but they don't know anything about the i7500 and Google doesn't really help either. My current guess is that it doesn't work with the internal memory card as the device id is apparently generated based on the sd card's serial number (Sygic used to distribute the software pre-installed on a sd card). So maybe the software can't recognise the serial number of the internal card and hence can't generate a device id...but that's just my guess. I just want to avoid wasting money to buy a microsd to install it on there if it turns out that the app is just not working with the i7500 for other reasons...
View 11 Replies
View Related
Jun 10, 2010
I was able to get wireless tether to work on my rooted EVO, but for some reason I can't get the wired tether found here android-wired-tether - Project Hosting on Google Code to work. I installed HTCsync and the specified driver, but when I switch it to internet sharing I get "Error code 67. Registration failure. Your PCS Vision username and/or password may be incorrect".rk?
View 15 Replies
View Related
Sep 25, 2010
I've got an app (.apk) file that I want to host on my site. Whenever I click on page link to the .apk file, I get the binary code listed as ASCII. The app does not download. I added:
AddType application/apk .apk
to the .htaccess file - tomcat server
View 6 Replies
View Related
Apr 6, 2010
I am writing an app that will require a centralized database, along with a small app to digest incoming file data and populate this database.
android phone -> file -> some app somewhere -> some database somewhere
I know this is probably a fairly common situation. Is there a particular hosting service/solution for this? Many apps must do something like this (with high score tables and the like). The trick is, I can't use one of the high-score-specific hosting sites, because I need the app in front of the database to interpret the incoming files.
View 1 Replies
View Related
Nov 2, 2010
I have a few iphone and andriod apps and would like to collect better and more targeted user feedback for them. The feedback from the App stores is pretty generic and doesn't add much value at most times. Any framework or website that I could use to help here? Kind of like Get Satisfaction for Mobile Apps.
View 1 Replies
View Related
Feb 11, 2009
I know that I am supposed to add application/vnd.android.package- archive mime type in it. However I have to access to this. I have emailed godaddy asking them to add it but I just wanted to see if anyone knows of an alternate method that I could use to allow my users to download this from my site.
View 6 Replies
View Related
May 14, 2010
PostgreSQL has announced an Android app contest. I wanted to try out something but the only hosting I have does not provide PostgreSQL. Do I have any economical (read cheap: D) options? Is there a free hosting that anyone knows of?
View 1 Replies
View Related