Not much !!! :) In Java, NullPointer is pretty too much.

You might not have initialized the TextView for which you are setting the
text. Look into the logcat for more details. It will give you the line
number where this exception is being generated.

On Fri, Nov 12, 2010 at 1:59 PM, Emre A. Yavuz <[email protected]> wrote:

>  Not much, just NullPointer ....
>
> Emre
>
> ------------------------------
> Date: Fri, 12 Nov 2010 10:37:56 +0530
> Subject: Re: [android-developers] how to call the setText() method in an
> Activity that is part of a Tab Layout ?
> From: [email protected]
> To: [email protected]
>
>
> What does it complain about? Look at your logcat.
>
> On Fri, Nov 12, 2010 at 5:25 AM, Emre A. Yavuz <[email protected]>wrote:
>
> Hi,
>
> I have created a Tab Layout based on the sample code given in the
> "Tutorials" section on the Android website. I have two Tabs with two
> Activities for each one of them.
>
> All I want to do is to update a "TextView" variable that belongs to a
> layout of one of the Activities when needed using the setText() method (for
> whichever activity being displayed at that moment).
> However it keeps on complaining during runtime and thus the text is never
> set. I was able to achieve this display update when I was using a single
> layout by just setting the text of the mentioned TextView variable. It
> should have something to do with the Tab Layout, but what ?
>
> Any ideas ?
>
> Cheers,
>
> Emre
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to