Thanks Mark, So what you are trying to say is if i don't use ActionBarSherlock then i wont get ActionBar on 2.2 and 2.3, which will mean there will absolutely be no change (ui wise) in my my but when it runs on 3.0+ an action bar will pop up.
Now if this is the case what code changes do i need to make. On Thu, May 31, 2012 at 5:13 PM, Mark Murphy <[email protected]>wrote: > On Thu, May 31, 2012 at 7:38 AM, giles ian <[email protected]> wrote: > > Hi Developers, > > > > I have an app developed for 2.2+. This app has menu options. Now on 4.X i > > get a compatibly menu button. Now after including action bar i am not > sure > > how the app should behave. > > > > I change my app and set targetSdkVersion to 14 with proper min version > and > > include the support jar. Add action bar. Now on 3.0+ i should get an > action > > bar but on 2.2 and 2.3 should i get an action bar + menu button working > or > > there will be no action bar and only menu button (which basically mean > there > > is no change for 2.2 and 2.3 whatsoever) > > You will not get an action bar on Android 1.x/2.x devices by setting > targetSdkVersion to any value. > > If you wish to have an action bar on Android 2.1+ devices, consider > ActionBarSherlock. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.7 Available! > > -- > 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

