That's a simple problem of variable scoping. Reference the outer EditText by using "this.name" or rename the variables.
j On Wed, Apr 22, 2009 at 11:41 PM, Eric Ladem <[email protected]> wrote: > Hello Android members, > I'm a new android developper and I have problem with my database.In fact, I > have done : > private EditText name; > private EditText number; > private void saveState() { > String name = name.getText().toString(); > String number = number.getText().toString(); > I have this message:"The method getText() is undefined for the type String" > > Please, I need help. > Thank you > > Aglagla > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

