android programming question?

KarimHasebou

New member
Oct 13, 2011
4
0
1
<EditText
android:id="@+id/reply"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="text"/>
this is in my xml file it make a user input area
how can i take the input to compare to a string
 
On you activity part:

EditText abc = (EditText)findViewById(R.id.reply);
String strValue = abc.getText().toString();

That should do it.
 
Back
Top