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. i hope to Android dev.

i hope android dev .
focus to :
Theme Style    => with multi theme ( mac , android, iphon , vista ,win
7 ) ,
effect animation ,
google earth ,
google Drive for android ,
and
Window Child in Desktop Android  ( it's for netbook or PC android )

we have big enemy ..
(iphone frimware 2.2 ,nokia , palm pre ,and BB , )

and i hope . android cupcake  make big revolution ..

think deffreent ...with them

think deffreent ... with them

think deffreent ... with them

think deffreent ... with them

think deffreent ... with them


make big revolution ....
















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

2. App Market app publish question?

I need to test the app upgrade functionality of my app before I
publish it on the market for everyone to find and DL.  to get the
update code to work I need to know my apps ID number to query
versioncode numbers.  how can I publish my app to the market with my
account and get that APP ID number from the market without letting
everyone know my app is ready for DL?  I have not published an app
before and dont want to let the app out before its working and
upgradeable...  any ideas?  any way to upload an app and hide it?

Thanks

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

3. The help on working out JMCAD is necessary

4. A question of the API takePicture in android.hardware.Camera

5. webview extracting html

6. Zygote Problem: Restarting continuously

7. How to check what is the topmost activity on screen.