Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTC One X - shows "compatibility" menu icon

I have application which uses Sherlock ActionBar package.

The application uses platform-specific behavior for menu (so it's 3-dot icon in ActionBar on ICS and classic menu under HW button on pre-ICS)

I had recieved report from one user with HTC One X. It appears, that One X shows some "compatibility" bar with menu button on the bottom of screen, and there is also same button in ActionBar (where it's supposed to be).

I was not able to emulate this in AVD, and I have multiple reports that this issue is not present on Galaxy Nexus or Galaxy S (they show only the icon in ActionBar).

I have no idea where to look to resolve this or how to debug it, so any help or workaround will be appreciated.

Application is built against API14, with targetSdk="11"

like image 324
Jan Langer Avatar asked Jun 19 '12 21:06

Jan Langer


1 Answers

You have a typo:

The android:targetSdkVersion in the manifest should be the solution - it's recommended by Google to always set it to the maximum available (currently it's 19).

Some websites do show that HTC shows the huge button on old apps, but not on new ones, as shown here, so if you think it's weird/ugly, simply set the target SDK. Also make sure it's updated in the project.properties file .

like image 169
android developer Avatar answered Sep 21 '22 19:09

android developer