Broadcast Receiver and Internet connection
问题 How do I use broadcast receiver to check if there isn't Internet connection? And after that: 1.If there is connection = do nothing 2.There isn't connection = open new activity I hope you understand what I'm asking about. Here is my webview app code: WebView mWebView; String URL = "http://url.com"; ProgressBar loadingProgressBar,loadingTitle; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);