[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
I do fully agree with the process, but apparently, with these requirements (supporting x to honeycomb), we are cornered with using build targets *above* the minSdk level which is really begging for troubles. Google dropped the ball at the last hurdle. If the XML code for tablets (showAsAction, fo

Re: [android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Mark Murphy
On Mon, Oct 10, 2011 at 11:15 AM, Jean-Michel wrote: > If I build with SDK >=11, I am at risk of including some code that > will fail badly on SDK 8 to 10 devices... Hence, you need to test your app on older devices/emulators. Do not write production code without writing associated tests and runn

Re: [android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Kostya Vasilyev
Probably the easiest thing you can do is... ... before making a release build, switch the build target back to 2.2 (or what have you), temporarily, and inspect the build errors. -- Kostya 10.10.2011 19:15, Jean-Michel пишет: If I build with SDK>=11, I am at risk of including some code that w

[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
This is proving much harder than I thought... Basically, in order to show a search item in the action bar (or any item) I need to set "showAsAction" in my menu. In order to do that, I need to build with SDK >= 11. If I build with SDK >=11, I am at risk of including some code that will fail badly

Re: [android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Mark Murphy
On Mon, Oct 10, 2011 at 3:24 AM, Jean-Michel wrote: > I cannot get "android:showAsAction" to be recognised/accepted in my > project (minSDK = 8, targetSDK = 11). Adjust your *build target* to 11. In Eclipse, this is in project properties. Outside of Eclipse, it's in one of those properties files.

[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
Hi Mark, I cannot get "android:showAsAction" to be recognised/accepted in my project (minSDK = 8, targetSDK = 11). Eclipse tells me : "error: No resource identifier found for attribute 'showAsAction' in package 'android'". Is that supposed to work with projects below 11? That would mean that app