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
SipdroidEngineListener{
        public static final TextView callStatus = null;
           public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.callscreen);
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);
                        return;
                }
                printLog("RINGING", LogLevel.HIGH);
                callscreen.callStatus.setText("Ringing..");

                // play "on" sound
                //if (clip_on != null)
                {
                        //clip_on.start();
                }
                if (listener != null)
                {
                        listener.onUaCallRinging(this);
                }
        }

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

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. off page optimization services | SEO

Plz look it my blog and give me best comment

-- 

2. Howto: Lock down android using our custom start up application.

I am investigating a possibility of runing our custom application at
startup when android boots up. Also I would like to run this
application at startup in full screen mode. It should not allow users
to access any other functionality of OS.

Ideally I would like to hide the fact from User that my application is
running on top of Android.

Can anyone on this group help me on this?

Thanks,
H Belani.

-- 

3. WebView default zoom controls not working in 2.1 - what am I doing wrong

4. BroadcastReceiver called but PhoneStateListener not called

5. [Ginger Bread][Webkit] Preloaded Flash is not working

6. file name limitations in assets?

7. manifest intent filter not matching new scheme