如何在Android的离线谷歌地图合作 [英] How to work with offline google maps in android

查看:130
本文介绍了如何在Android的离线谷歌地图合作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android应用程序我正在显示谷歌地图。想,如果任何网络问题就来了,我需要显示离线谷歌地图。如何做到这一点的。请帮助我。

in android application i am displaying Google maps. suppose if any network problem comes, i need to display offline google map. how to do this one. please help me.

在此先感谢

推荐答案

您需要检查在这种情况下,你的互联网连接...

you need to check your internet connection in that case...

尝试用以下code ..

try with following code ..

if (Constants.isInternetOn(Poll.this) == false
                            || Constants.wifiConnectivity(Poll.this) == false) {
                        Constants.showAlert("No network connection",
                                "Alert!!!", getParent());
                    }

这篇关于如何在Android的离线谷歌地图合作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆