When I wrote "I'm sure you are starting to see that what you thought of doing was made intentionally difficult" I was referring the fact that when you create an instance of LinearLayout, or any other class in the View hierarchy, you have to specify a Context (an abstract class) in the constructor of the View. The concrete class that is the relevant Context object for your View classes is the Activity. That is, Android was designed not to do what you were thinking of, and to tie all View instances to an existing instance of Activity. So, yes, it is not possible make an instance of View before you make an instance of Activity and associate the two later on, now and likely ever.
You can, however, create the specifications for a set of View objects in XML, pass the XML as a String in the Intent, and have the new Activity build its View objects from the specifications. Look at the ViewInflate and XmlPullParser classes. -- 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

