How to get Activity View inside that activity?

Btw if I understand you want do create an activity group that contains an activity developer.android.com/reference/android/... and you can read what is here mail-archive.com/android-developers@goog....

Thanks. Yes I got it , using activitymange in group activity. – Arslan Aug 21 at 20:37.

Don't store anything context-related in global static variables, this leads to memory leaks. Maybe you should just perform the start your second ativity with FLAG_ACTIVITY_CLEAR_TOP flag. In this case, the new activity will substitute the first one.

Also you can call current activity's finish() just after the startActivity(). Finally, you might want to use the ViewFlipper to change Activity's view.

Using statics does not seem to be a good approach. I am aware of 2 alternative approaches: in the . Xml file it is possible to include other layouts.

Use Include layout element for that purpose. Put ViewStub element in your Main . Xml layout.In the ViewStub .

Xml properties define view you want to inflate. In your program, obtain reference to ViewStub and call inflate() method to show the view you inflated. Check Android documentation: ViewStub reference.

I try LayoutInflater but it return a NULL Object. – Arslan Nov 12 '10 at 5:39 How come? If you put as argument correct .

Xml layout, it should not happen. For example: View textEntryView = factory. Inflate(R.layout.

Alert_dialog_text_entry, null); – Zelimir Nov 12 '10 at 7:02 Main thing is that I want to include . Xml file layout programatically to my main activity layout... – Arslan Nov 12 '10 at 7:04 I think I correctly understood what you want, and what I suggested is one way to do that. Please consult Android documentation about ViewStub to see how it works and code examples.

– Zelimir Nov 12 '10 at 7:32.

Maybe you should just perform the start your second ativity with FLAG_ACTIVITY_CLEAR_TOP flag. In this case, the new activity will substitute the first one. Also you can call current activity's finish() just after the startActivity().

Finally, you might want to use the ViewFlipper to change Activity's view.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions