In Android that means a URI,
Uniform Resource Identifier[
^]. The Android API contains the definition as,
Uri
[
^] in
android.net package.
But... The one in your code doesn't look like that, Java is a case-sensitive language, so Uri is not equal to uri. They have different meanings, and since parse is a static function, your code won't compile. Please change it to
Intent intent = new Intent();
intent.getData(Uri.parse(editext1.getText().toString());
You must keep the names as they are, otherwise they will cause a problem in your code. I hope the code would work (
if edittext1
is defined as it is written). Plus, read the resources provided to learn more about Uri or other objects. You will find a lot of more resources on official Android documentation, do visit them. :)