Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 android 应用程序中,我正在显示谷歌地图。假设如果出现任何网络问题,我需要显示离线谷歌地图。如何做到这一点。请帮我。
提前致谢
在这种情况下,您需要检查您的互联网连接...
尝试以下代码..
if (Constants.isInternetOn(Poll.this) == false || Constants.wifiConnectivity(Poll.this) == false) { Constants.showAlert("No network connection", "Alert!!!", getParent()); }