Hey buddy,

I have Legend and Google Map and MapView work fine.

Try to use:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(Uri.parse("geo:" + memo.location.getLatitude() +
Util.STR_COLON + memo.location.getLongitude() + "?z=13"));

and then either startActivity of Intent.createChooser(intent,
"blablabla");

Android resolves app by content uri, which is geo:<lat>,<long>?
z=<zoom>

Dont forget, that there could be theoretically no app to handle geo
schema.

Look for documentation somewhere on android.com

Regards,
nakvic


On 29 сен, 20:38, kix2902 <[email protected]> wrote:
> I'm trying to launch the Maps application from my own activity and
> throws me an exception.
>
> This is the code that I launch:
>
> PackageManager pm = context.getPackageManager();
> Intent i =
> pm.getLaunchIntentForPackage("com.google.android.apps.maps");
> context.startActivity(i);
>
> And this is the LogCat:
>
> E/gAppsLauncher( 2935): Unable to find explicit activity class
> {com.google.android.apps.maps/
> com.android.internal.app.ResolverActivity}; have you declared this
> activity in your AndroidManifest.xml?
>
> This code executes OK in the stock Android but Sense seems to have
> something that revokes the launch of the activity. I launch some other
> apps like gMail without errors, it's only Maps application who gives
> that error.
> Do you know any solution to this error? Thanks
>
> P.S: Sorry for my very bad english.

-- 
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

Reply via email to