Android: Using GEO uri

Posted by Sebastian on Stack Overflow See other posts from Stack Overflow or by Sebastian
Published on 2010-04-27T06:27:13Z Indexed on 2010/04/27 6:33 UTC
Read the original article Hit count: 241

Filed under:
|

Hi,

I have read the doc and some tutorials to get a .kml file working launching the google maps activity. When I hosted the file in a server, this works perfectly:

Intent myIntent = new Intent(
                             android.content.Intent.ACTION_VIEW,
                             Uri.parse("geo:0,0?q=http://somedomain.com/file.kml")
                             );

Now, reading this link on how to use intents for gmaps with the developing stage of GEO uri I can't manage how to load a kml file from within the device, I have tried with "q=file:///path-to-file.kml" and with an absolute path too.

Has anyone done this yet?

PS: in IRC channel recommend me to use apps based on openstreetmaps, but the docs is much more poor than the gmaps doc althought they are OS.

© Stack Overflow or respective owner

Related posts about android

Related posts about map