On Sat, Aug 13, 2011 at 7:58 AM, Goutom <goutom.sust....@gmail.com> wrote:
> I have a TextView.
>
>  TextView navi_org_name;
> navi_org_name = (TextView) findViewById(R.id.pio_navi_org_name);
>
> navi_org_name.setText(orgname+"");
>
> red line crashes my program.Logcat shows nothing.just crushes.

Check LogCat again. Keep checking until you find the Java stack trace
in LogCat. Note that if you are using Eclipse you need to run past the
exception (or simply run the project rather than debugging the
project) to get anything in LogCat, AFAICT.

If you find that it is showing you a NullPointerException, then there
is no widget with that ID in this layout, or you have called
findViewById() before calling setContentView().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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

Reply via email to