I need to remove all kinds of "web beginnings" from my String
My TextView must be without "http://" , "http:// www." , "www." and other URL prefixes.
Please can you help me to to this ?
Use an instance of URI
and use it to split however you want:
URI uri = new URI(whateverYourAddressStringIs); String path = uri.getPath(); // split whatever you need
http://developer.android.com/reference/android/net/Uri.html
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