Hello I am trying to open google earth from my test app and I wanted to see
a kml file that I have in sd.
I read that you did but as you have done as you called the intent?
I tried that but it does not work .
Intent i = new Intent(Intent.ACTION_MAIN);
PackageManager manager = getPackageManager();
i = manager.getLaunchIntentForPackage("com.google.earth");
File SDCardRoot = Environment.getExternalStorageDirectory();
Uri introURI;
introURI = Uri.parse("file:///"+SDCardRoot+"/xxx/"+ xxx+"/"+xxx+".kml");
i.setData(introURI);
i.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(i);
Google Earth opened but don't see the kml file
Il giorno domenica 11 marzo 2012 15:14:37 UTC+1, mduffy215 ha scritto:
>
>
> I tried to open a KML link in my android app. My expectation was that
> Google Earth would open and the KML file would be displayed. Instead,
> I saw a text version of the KML file.
>
> Is there some manifest entry I need to set for permission?
>
> Why isn't this magically simple?
>
> Mike
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en