There should be a detailed stack trace in logcat, look for "caused by".

-- Kostya

12.11.2010 11:29, Emre A. Yavuz ?????:
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] <mailto:[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]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto: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://techdroid.kbeanie.com/>
http://www.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 --
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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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