Re: [android-developers] Null Pointer Exception on accessing value of EditText

2011-05-20 Thread gaurav gupta
First set any value in edittext then u can get value . 1. EditText IPInput = (EditText) findViewById(R.id.ip); iPinput.setText("Value inserted successfully"); 2. IPInput.getText().toString(); System.out.println(ip); 3. System.out.println(IPInput.

Re: [android-developers] Null Pointer Exception on accessing value of EditText

2011-05-20 Thread TreKing
On Thu, May 19, 2011 at 4:16 PM, Ankur Kumar wrote: > I am getting java.lang.NullPointerException at step 3 in my code. Have not > been able to figure this out. > 1 - Use your debugger. 2 - Figure out what is null. 3 - Make it not null. -

[android-developers] Null Pointer Exception on accessing value of EditText

2011-05-19 Thread Ankur Kumar
Hello Developers, Please help me with this problem. I am getting*java.lang.NullPointerException * at step 3 in my code. Have not been able to figure this out. The value I am entering in the EditText is not empty. 1. EditText IPInput = (EditText) findViewById(R.id.ip);

[android-developers] Null Pointer Exception on accessing value of EditText

2011-05-19 Thread Ankur Kumar
Hello Developers, Please help me with this problem. I am getting java.lang.NullPointerException at step 3 in my code. Have not been able to figure this out. The value I am entering in the EditText is not empty. 1. EditText IPInput = (EditText) findViewById(R.id.ip);