I am opening the browser at a page from my app, the code for opening the browser is one I have used many times, but in this particular case, the browser never opens.
I keep getting the following messages at the end in logcat:
09-27 15:41:16.624: INFO/ActivityManager(1644): Starting: Intent { act=android.intent.action.VIEW dat=http://www.nyt.com cmp=com.android.browser/.BrowserActivity } from pid 9332 09-27 15:41:16.634: WARN/ActivityManager(1644): Duplicate finish request for HistoryRecord{4097ec10 com.test/com.test.MainScreen} 09-27 15:41:16.684: VERBOSE/http(4606): 15326478 main RequestQueue.resetWifiProxy, wifiProxy is null 09-27 15:41:16.684: ERROR/http(4606): RequestQueue.setProxyConfig, wifiProxy is null 09-27 15:41:16.784: DEBUG/webviewglue(4606): nativeDestroy view: 0x562af8
This is a part of a huge app with a native library.
This is the snippet that opens the browser:
String afterSubmitAction = "http://www.nyt.com"; Uri uri = Uri.parse(afterSubmitAction); startActivity(new Intent(Intent.ACTION_VIEW, uri)); finish();
Your code is working fine at my side.So please check your internet connection.Please run your code on Edge if you are using wifi to check what cause this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With