简体   繁体   中英

Starting Google Maps activity

I am trying to start Google Maps activity like this:

    Intent start = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:"+58.0+","+58.0));
    startActivity(start);

But I am getting activity not found exception.

Do I have to declare Google Maps Activity? Any help is appreciated thanks.

This mean Google Maps is not installed (nor anything else that thinks it can handle this link). You need to catch the exception and prompt the user to download from the market.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM