setContentView() should be called in onCreate()... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware
On Mon, Mar 5, 2012 at 10:38 PM, Temp Test <[email protected]> wrote: > Hi Shani, > From the exception it looks like you are trying to set the same list view > object more than once. > Verify when it happens. may be in onresume when you come back. > > > > On Tue, Mar 6, 2012 at 10:50 AM, moktarul anam <[email protected]> wrote: > >> Hi Shani, >> >> its not clear. In setContentview u can add only layout name. >> setContentView(R.layout.main); >> moktarul >> >> >> On Thursday, 1 March 2012 22:46:51 UTC+5:30, Shani wrote: >>> >>> Hi, >>> >>> i'm new to android and trying to dispatch a ViewList from a current >>> Activity. (Android 2.2) . I'm getting this exception >>> "java.lang.**IllegalStateException: The specified child already has a >>> parent. You must call removeView() on the child's parent first." >>> >>> e.g. Like the search contacts dispatch a new window with the multiple >>> possibilities and then go back to the 1'st Activity >>> >>> Does anyone know how you do it ? >>> Appreciate quick response. >>> >>> Shani >> >> -- >> 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 > -- 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

