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?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to