Saturday, July 30, 2011

[android-developers] Re: Multiple Activities within a Tab

Dear,
Though i am learning android but i want to bring some application in
the android market.

I wish to have tabs for my application.
If i dont use ActivityGroup, how can i have multiples view in the same
tabs.

On Jul 31, 12:02 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Sat, Jul 30, 2011 at 2:54 PM, RobinDroid <librain.ro...@gmail.com> wrote:
> > I am currently developing a tab based application to learn Android.
> > I have 2 tabs: TAB1 and TAB2.
>
> > I created tabs: thats fine:
> > TAB1: is used to browser some files, dats ok as well.
>
> > The problem is with tab2.
> > TAB2 extends ActivityGroup: Why because i will has multiple activities
> > within it and also different Menus:
>
> Please don't. ActivityGroup -- and having activities in tabs by
> extension -- is deprecated.
>
> Please use Views as the contents of your tabs in a TabHost. There is
> no sense in you "developing a tab based application to learn Android"
> that uses techniques that are no longer endorsed.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment