[android-developers] Re: Activity inside a view

2010-09-06 Thread Explore Android
Thanks a lot. That solves my problem. On Sep 6, 6:49 pm, a1 wrote: > > Does anyone has a simple example of to use LocalActivityManager or > > something else to meet my requirements. > > void createInnerActivity(ViewGroup container, Class activityClass) > { >         if (container.getChildCount()

[android-developers] Re: Activity inside a view

2010-09-06 Thread a1
> Does anyone has a simple example of to use LocalActivityManager or > something else to meet my requirements. void createInnerActivity(ViewGroup container, Class activityClass) { if (container.getChildCount() != 0) { container.removeViewAt(0); } final Intent i

[android-developers] Re: Activity inside a view

2010-09-05 Thread Explore Android
Thanks for all your feedback or suggestions. Before posting this message I was already implementing the solution that proposed by TreKing. But I felt this is not a smart way of doing it. It would have been nicer to have all my ActivityA behavior and GUI (with out any modifications) showed inside a

Re: [android-developers] Re: Activity inside a view

2010-09-05 Thread TreKing
On Sun, Sep 5, 2010 at 6:40 AM, a1 wrote: > You can and moreover it makes a lot of sense, TabHost in fact relies on > this. > This is true, though I'm not sure if this is what the OP is getting at. But I may very well be misunderstanding the OP's request to have an "Acitvity inside a View". ---

[android-developers] Re: Activity inside a view

2010-09-05 Thread skink
On Sep 5, 1:40 pm, a1 wrote: > > And ... ? > > Subclass ActivityGroup, get LocalActivityManger, create local activity > and add decor view from newly created activity window as child of any > of ViewGroup in your layout, as simple as that. > I didn't test it but in theory you don't even need Ac

[android-developers] Re: Activity inside a view

2010-09-05 Thread a1
> Because you can't put an Activity inside a View - that's simply not > supported and makes no sense. You can and moreover it makes a lot of sense, TabHost in fact relies on this. > > > see: > > developer.android.com/reference/android/app/LocalActivityManager.html > > And ... ? Subclass Activity

[android-developers] Re: Activity inside a view

2010-09-04 Thread viktor
You can use one activity and few views, and manage only their visibility, except if you have to use different view containers (MapView, ListView, ...). On 3 Вер, 23:04, Kumar Bibek wrote: > Yeah, you can use the LocalActivityManager, but for his situation, I > guess the best way would be to fol

[android-developers] Re: Activity inside a view

2010-09-03 Thread Kumar Bibek
Yeah, you can use the LocalActivityManager, but for his situation, I guess the best way would be to follow Treking's advice. I haven't really dived into the LocalActivityManager however. I don't know how easy or difficult that would be. -Kumar Bibek http://techdroid.kbeanie.com On Sep 3, 11:13 pm