Application must be run on 2.3 and 4.0. On activity there are options menu. On 2.3 - all ok present menu button on device. On 4.0 - no menu button, an no way show option menu. in manifest
android:minSdkVersion="8"
android:targetSdkVersion="15" />
activity
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_auth, menu);
return true;
}
Q: How write application for run on 2.3 and 4.0, and using options menu?
It's huge pain in making app compatible with older versions. There's one library I will suggest you to use. It damn good written by Jake Wharton called ActionBarSherlock. You can find out more here at the link
I myself used in two apps till now. It allows you to use ActionBar
(introduced in 3.0) in older versions like 2.2. It extends android support-library There are themes provided in library and if set your app simple transforms into 4.0 in terms of look and feel.