Updating TextView from one class to another

by Silvara » Sat, 21 Feb 2009 01:49:29 GMT

Sponsored Links
 Hi All;

I have a TextView which i want to set its text from another class ..
But it is not working ..

My code is as belows

public  class callscreen extends Activity implements
        public static final TextView callStatus = null;
           public void onCreate(Bundle savedInstanceState) {
final TextView callStatus = (TextView) findViewById(R.id.callStatus);


//this is the class where i want to update callStatus value

public void onCallRinging(Call call, Message resp) {
                printLog("onCallRinging()", LogLevel.LOW);
                if (call != this.call && call != call_transfer)
                        printLog("NOT the current call", LogLevel.LOW);
                printLog("RINGING", LogLevel.HIGH);

                // play "on" sound
                //if (clip_on != null)
                if (listener != null)

Do you have any idea why am i not able to do this?


Other Threads

1. How to know the reason that causes the activity destroyed

One of my Activity is restarted automatically (that is onDestroyed() is called, 
and then onCreate(xxx) is called as well).

And I found following matters before Acviity is destroyed:
- onLowMemory() is not called
- onConfigurationChanged(xxx) is not called
- inOnDestroy(), method isFinishing() returns false

How to know the reason auses the activity destroyed?




2. Map is not dispalying in the android emulator

Hi ,

I am new to this group; I would like to share my problems in this
group. I am trying to develop small map application in android
Initially I have generated the API key, by using that key I have
tried to view the map in the android emulator window (I have referred
http://www.vogella.de/articles/Android/article.html this site to
develop the map application and find the current location). but I
couldn view the map.
So I have added the maps demo application which is there in the
android SDK. Still I couldn see the map. Please guide me how do I
find and verify API key
Which I generated is correct? Initially at what map will display in
the android emulator?
Thanks in advance€€

Thanks and Regards


3. Regarding USB driver

4. AutoCompleteTextView woes

5. Processing Camera Preview

6. Repost WTS Archos 5 IT 160GB + docking + HDMI

7. How to tell which permission are required?