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.
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.
-
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);
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);
4 matches
Mail list logo