How to display the text of a textfield in a url section in android?
Here is the code
final Text q = (Text) findViewById(R.id.q);
Intent i = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.com/search?q="));
startActivity(i);
i want to use as query this (Text) findViewById(R.id.q); . How??
What you are looking for is actually this.
Note the use of
EditText.Textis not the correct class you were looking for.