[android-beginners] Re: AlertDialog text input problem

2009-08-21 Thread Jan Bobeth
This works for me for an EditText as well. But when I try the same code for a Spinner I receive a NullPointerException. Both views are in the same Layout and both views have got an id. Actually, it is exactly the same code except the kind of the view. Any idea why I got this exception? Thanks O

[android-beginners] Re: AlertDialog text input problem

2009-07-24 Thread Jason Van Anden
That was it. Hopefully this post will help others. I could not find a good example of using AlertDialog for text input. The API Demos example does not show how to return the text! Thanks again Mark! Jason Van Anden On Fri, Jul 24, 2009 at 4:55 PM, Mark Murphy wrote: > > Jason Van Anden wro

[android-beginners] Re: AlertDialog text input problem

2009-07-24 Thread Mark Murphy
Jason Van Anden wrote: > I am having a problem using AlertDialog for input text. > > Code follows ... everything appears on screen as it should until I click > OK - then I get a force close. > > I get a null error on line where Editable e = et.getText();. > > Second set of eyes and a sturdy bra