Use URLUtil to validate the URL as below.
URLUtil.isValidUrl(url)
It will return True if URL is valid and false if URL is invalid.
More Related Contents:
- Retrofit Not building url as expected Android
- How can I open a URL in Android’s web browser from my application?
- URL encoding in Android
- Android Respond To URL in Intent
- Clicking URLs opens default browser
- How to display image from URL on Android
- How to lazy load images in ListView in Android
- Android Drawable Images from URL
- Get the URI of an image stored in drawable
- android custom url scheme..?
- org.json.JSONObject cannot be converted to JSONArray in android
- how to set image from url for imageView
- How to ping a URL in an Android Service?
- Make a hyperlink textview in android
- Android active link of url in TextView
- Android detect webview URL change
- ANDROID: How do I download a video file to SD card?
- ANDROID, Parse JSON data from a web server and display on ListView
- Android webview loadDataWithBaseURL how load images from assets?
- Block certain URLs for security in android webview
- how to validate a URL / website name in EditText in Android?
- Using getResources() in non-activity class
- INSTALL_FAILED_SHARED_USER_INCOMPATIBLE while using shared user id
- How to add Action Bar from support library into PreferenceActivity?
- Android app crashes with SIGABRT Signal 6 only while Eclipse debugging
- Android upload video to remote server using HTTP multipart form data
- GCM Push Notification with Asp.Net
- How to search for a value in firebase Android
- Cordova “hello world” app won’t display
- Crop an image when selected from gallery in android