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.getText().toString());
On Sat, May 21, 2011 at 12:40 AM, TreKing <treking...@gmail.com> wrote: > On Thu, May 19, 2011 at 4:16 PM, Ankur Kumar <specialan...@gmail.com>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. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en