Where's the documentation for using a URI intent with Google Maps? I assume you're trying to use the Android Maps application instead of including a MapActivity within your Android application. In the latter case, you can write your own KML parser and ItemizedMapOverlay to get the sample KML from any source, but understandably, it would be easier to use exisitng code.
On Wed, Jan 13, 2010 at 5:11 AM, Oren Kafka <oren.ka...@gmail.com> wrote: > Hi, > How can i load a local (on my HD) KML or KMZ file to the android > application? > I know that these lines do the work: > > Intent mapIntent = new Intent(Intent.ACTION_VIEW); > Uri uri1 = Uri.parse("geo:0,0?q=http://code.google.com/apis/kml/ > documentation/KML_Samples.kml"); > mapIntent.setData(uri1); > startActivity(Intent.createChooser(mapIntent, "Sample")); > > BUT, if I download the KML_Samples.kml and put it on my local apache > server, it doesn't work. > Another thing, can I load a kmz file to my application??? > > Thanks, > Oren. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en