Check if your EditText id is correct. Code is correct.
On Mon, Aug 27, 2012 at 12:02 PM, vinay kumar <[email protected]> wrote: > Hi vikas, > > I don't see any issue in your code, may I know what problem you are facing > with? > > > On Mon, Aug 27, 2012 at 11:55 AM, karuna vikas <[email protected]>wrote: > >> .... activity implements OnClickListener >> EditText text; >> String editText; >> public void OnCreate() >> { >> text = (EditText) findViewById(R.id.EditText1); >> >> } >> inside the Button method{ >> >> editText = text.getText().toString() >> } >> >> >> On Saturday, June 2, 2012 11:36:47 PM UTC+5:30, Raghu wrote: >>> >>> hi, >>> >>> how can i get the text entered by the user in the Edit Text on button >>> click, kindly do help me on this >>> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- -- . \\\/// . / \ . | \\ // | . ( | (.) (.) |) ----------o00o--(_)--o00o----------------- "Yesterday is not ours to recover, but tomorrow is ours to win or to lose." -----------ooo0------------------------------- . ( ) 0ooo . \ ( ( ) . \_) ) / . (_/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

