阅读背景:

如何检查当前互联网连接是否可用于android

来源:互联网 

I want to execute my application offline also, so I need to check if currently an internet connection is available or not. Can anybody tell me how to check if internet is available or not in android? Give sample code. I tried with the code below and checked using an emulator but it's not workingI want to execute my application offline also,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: