setContentView() completely replaces your current UI with a new one.  If you
just want to make an image shown, you need to modify the current UI -- for
example have an ImageView containing the image which you change between
View.INVISIBLE and View.VISIBLE.
 On Apr 30, 2011 10:48 AM, "Alaeddine Ghribi" <[email protected]>
wrote:
> Hello,
> I want to change the UI(if possible just add an image to the UI) when
> i'm well connected to the server(i'm developping a SIP application) by
> adding an imaged "Connected" .
> In fact, i've made this but i have a FC:
> public void onRegistrationDone(String localProfileUri, long
> expiryTime) {
> updateStatus("Registered to server.");
> Log.d("SUCCEED","Registration DONE");
> setContentView(R.layout.connected);
> }
>
> connected is an XMl file that has a textview(with same id as the
> main.xml) and the image that i want to add.
> How can i do this?
>
> Thank you very much.
>
> --
> 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

Reply via email to