【问题标题】:Android GoogleMap Error安卓谷歌地图错误
【发布时间】:2013-01-07 15:33:55
【问题描述】:

目前,我正在使用 google map api V2 通过 "com.google.android.gms.maps.MapView" 将地图显示到我的应用程序中。我的问题是,当特定设备没有安装“google play services”时,自动“Get Google Play services”按钮将显示“MapView”。但是,当我单击该按钮时,应用程序被强制关闭并出现错误 "No Activity found to handle Intent{act=android.intent.action.VIEW dat=http://play.google.com/store/apps/details ?id=com.google.android.gms}"提前致谢。

【问题讨论】:

    标签: android google-maps


    【解决方案1】:

    试试这个代码

    try{
         put your code here to open Google Play services
       }catch (ActivityNotFoundException e) {
          show some text here
        }
    

    【讨论】:

    • 但它只是处理您的异常以避免强制关闭应用程序。我想显示必须安装“Google Play 服务”的谷歌地图。如果可能的话,请建议我另一种方式将地图加载到不依赖于“Google Play 服务”的应用程序中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多