How to tell if a Streetview exists before launching Streetview intent

前端 未结 4 1753
星月不相逢
星月不相逢 2020-12-18 08:36

Launching a Streetview intent for a location doesn\'t guarantee that a Streetview exists for that location. If the Streetview doesn\'t exist, the user just sees a black scr

4条回答
  •  我在风中等你
    2020-12-18 09:25

    Use PackageManager and queryIntentActivities() with your Intent. If you get back a list of 0 matching activities, you know nothing on the device will handle your request.

提交回复
热议问题