How to open standard Google Map application from my application?

后端 未结 9 957
星月不相逢
星月不相逢 2020-11-28 01:09

Once user presses button in my application, I would like to open standard Google Map application and to show particular location. How can I do it? (without using com.g

9条回答
  •  生来不讨喜
    2020-11-28 01:46

    Sometimes if there's no any application associated with geo: protocal , you could use try-catch to get the ActivityNotFoundException to handle it.

    It happens when you use some emulator like androVM which is not installed google map by default.

提交回复
热议问题