My problem is that I have an app with action bar menu. The app works fine on the emulator, everything is shown, but when I'm debugging it on physical device, I can't see action bar with buttons. I have added action bar with support library. MinSdkVer
of app is 8
. My phone has android version 2.3.6
, so version shouldn't make any problems. I don't know what can be done to make it work.

- 1,039
- 2
- 11
- 28

- 1,011
- 2
- 14
- 35
-
Which support library have you added? – Pramod Ravikant Sep 06 '13 at 08:28
-
You are using `appcompat v7 support library` ? – Pramod Ravikant Sep 06 '13 at 08:32
-
yeah, this same. v7 appcompat library – MyWay Sep 06 '13 at 08:40
-
whats your emulator api action bar needs api 11 – Sep 06 '13 at 09:03
2 Answers
Set up your project with the appcompat v7 support library by following the instructions in the Support Library Setup.
Once your project is set up with the support library, here's how to add the action bar:
- Create your activity by extending ActionBarActivity.
Use (or extend) one of the Theme.AppCompat themes for your activity. For example:
Now your activity includes the action bar when running on Android 2.1 (API level 7) or higher.

- 1,039
- 2
- 11
- 28
-
yeah, thx it works. I have one more question, haw can I put my action bar on the bottom of screen, because "android:uiOptions="splitActionBarWhenNarrow" this line in manifest doesn't work now. – MyWay Sep 06 '13 at 09:07
-
ok, I find it here http://developer.android.com/guide/topics/ui/actionbar.html under the paragraph "Using Split Action Bar" I post it, maybe somebody will need it – MyWay Sep 06 '13 at 09:16
-
http://stackoverflow.com/questions/7039034/is-it-possible-to-put-android-actionbar-on-the-bottom – Pramod Ravikant Sep 06 '13 at 09:38
check your emulator version it might be above 3.0 and if you run app in emulator with version below 3.0 you will get the same buttons you have watched in your device....
the solution is you have to use support library concept shown in following links,
http://developer.android.com/tools/support-library/index.html
http://tekeye.biz/2012/android-support-library-samples
http://www.grokkingandroid.com/adding-actionbarsherlock-to-your-project/