Url addresses must be preceded by http://
Uri uri = Uri.parse("www.google.com");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
throws an ActivityNotFoundException. If you prepend “http://”, problem solved.
Uri uri = Uri.parse("http://www.google.com");
More Related Contents:
- Android emulator: could not get wglGetExtensionsStringARB error
- Android ADB device offline, can’t issue commands
- ADT requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found
- Custom SSL handling stopped working on Android 2.2 FroYo
- GCM SERVICE_NOT_AVAILABLE on Android 2.2
- What is a maximum size of SQLite database on Android?
- How do I pause Flash content in an Android WebView when my activity isn’t visible?
- Why can’t one add/remove items from an ArrayAdapter?
- Android SDK Manager gives “Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml” error when selecting repository
- SchemaFactory doesn’t support W3C XML Schema in platform level 8?
- Android; Geocoder, why do I get “the service is not available”?
- (How) Can an android virtual device use the local computer’s internet?
- Android SDK tools revision 12 has problem with Proguard => error conversion to Dalvik format failed with error 1 [duplicate]
- Communicating between a fragment and an activity – best practices
- Scheduling recurring task in Android
- Only load layout when firebase calls are complete
- Full Screen DialogFragment in Android
- What is the meaning of addToBackStack with null parameter?
- How can i simulate accelerometer in android emulator? [closed]
- Recycler view showing single item
- Set unchangeable some part of editText android
- Android 4.2: back stack behaviour with nested fragments
- How to add PDFBox to an Android project or suggest alternative
- How to set android TabLayout in the bottom of the screen?
- How to merge two APK into single so that both apps can be installed at the same time
- How to Handle backPress with Fragment
- Onscroll selected checkbox getting unchecked using listiview
- Android – redirect to store if app not installed (launch from website)
- Android M crash java.lang.UnsatisfiedLinkError: dlopen failed:
- android GCM registration ID max length