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. gallery initial selection

Hi,

This is newbie question,
But I have created a gallery view with an imageswitcher above it.
It loads the images and corresponding thumbnails from the image
files.

When I first start the activity and display the screen, I would like
to set the displayed/selected
image in the the gallery and the imageview above to an specific
position in the list.

How can I do this.

Thanks in advance.
Sunil

-- 

2. Lowpass noise filtering in android

I am trying to implement a lowpass noise filter in android.....do we
have any algorithms which could help me develop a better lowpass noise
filter in android. Please help me out with this.
Thank you
Srikanth

-- 

3. Android Database Example Error

4. Save Images from Web and display in Grid View.

5. How to port a M3G app to Android?

6. limit size of input field for a Searchable

7. Guidance