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
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
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
3 matches
Mail list logo