Null Pointer Exception on accessing value of EditText

by Ankur Kumar » Fri, 20 May 2011 09:30:39 GMT


Sponsored Links
 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);
                       2.  IPInput.getText().toString(); System.out.println(ip);
                       3.  System.out.println(IPInput.getText().toString());

--
Regards,
Ankur Kumar

-- 



Null Pointer Exception on accessing value of EditText

by Ankur Kumar » Fri, 20 May 2011 09:30:40 GMT


 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);
       2.  IPInput.getText().toString(); System.out.println(ip);
        3.  System.out.println(IPInput.getText().toString());



--
Regards,
Ankur Kumar

-- 


Sponsored Links


Other Threads

1. "unknown socket error " Is anyone know this error??

Hi,

I think the problem was about the url convention, Here is my example:

*  private static final String URL = "
http://www.codemobiles.com/nusoap/samples/authen_ws.php";

you see full source code of my example from Exam: Web Service Client for
Android SDK 
Ver-1.1,1.5,1.6<%20%20private%20static%20final%20String%20URL%20=%20%22http://www.codemobiles.com/nusoap/samples/authen_ws.php%22;>
*
Note: any result, please let me know too. :)

Chaiyasit T.
www.codemobiles.com*
*








--~--~---------~--~----~------------~-------~--~----~

2. Question about built-in content providers

I understand that people can rip it apart and do whatever with it so
my main concern is about "official" android releases.

Can someone from Google comment if the support for all built in
content providers is a requirement for being able to run Android
Market or is this part not regulated? I'm asking because when I'm
developing an app that will be published on the Android Market, do I
have to design for all cases where a particular built-in content
provider (or part of it) is not supported?


Tauno






--~--~---------~--~----~------------~-------~--~----~

3. Audio Playback while Recording... ------- attemp playback while recording, cheat it! ----- error

4. Fwd: Device Driver Development for Android

5. BaseAdapter getView() gets called 3x per item

6. Managing background uploads

7. Uninstall not working