Android menu button not show - android

I write an application.
It run on Android 2.3.4 phone, the menu can be pressed.
But if run on Android 4.0.3 TF201, the menu button not show.
How to let it show the menu button?

Android 4.0 will discontinue the menu button. Here is a nice article by android developers that says what to do.

If you want to give menu feature in android 4.0, you have to use Action Bar instead.Follow this link for more details

If you have to use that menu use the following lines in your Manifest file:
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="9" >
</uses-sdk>

But sometimes you want a fullscreen app...for example in the Manifest is setted the activity with:
android:theme="#android:style/Theme.NoTitleBar"
The only and ugly fix is to set under the target sdk version:
http://lancelotmobile.com/blog/mobile-air-app-compatible-with-android-4/

Related

Android 3 dotted button Galaxy S6

I'm working on a native Android app and I'm having a tough time trying to hide the 3 dotted button from my application.I've detected it on a client's Galaxy S6.
Here you can find a screenshot of the button and some more information about it, but, unfortunately, not a way to hide it: http://forums.androidcentral.com/samsung-galaxy-s6/513901-what-little-circle-three-dots-inside.html.
I've also tried the solution from here: Cordova PhoneGap Floating Icon Android 5+ Samsung S6
But everything was without success.
Can somebody help me?
i Think u just need to remove the item tag under the res/menu/yourfile.xml if not working just share your Code XML file
res-> menu-> your_menu_xml
<item
android:id="#+id/action_edit_pass"
android:orderInCategory="100"
android:showAsAction="always"
android:title="#string/action_edit_pass"/>
the 3rd line is the important: change the "never" to "always".
The response from here was right. The first time when I tried it I've selected the target SDK from Ecplise (right click on the project, etc...), but I failed to notice that android:targetSdkVersion was not added to my AndroidManifest.xml.
So in order to fix this I added manually android:targetSdkVersion="22" in AndroidManifest.xml
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="22" />

Android full screen without three dots

I create empty app. I want set full screen without three dots(menu/search/back).
Please help!
Set in the manifest
<activity android:theme="#android:style/Theme.NoTitleBar.Fullscreen" .... >
If you use a tablet you cannot get rid of the system bar. You may be able to get rid of the navigation bar and status bar on phones. Please read the "Controls for system UI visibility" section of the Android 4.0 SDK release notes. http://developer.android.com/sdk/android-4.0.html

Remove Android options menu in XE5 Delphi

Is there a way to completely remove the Android options menu in XE5 Delphi? I've been testing my application on a HTC One and because my phone doesn't have a menu button and my application doesn't have an options button, android automatically adds a options menu. Since this button is added by Android there is no way to add items to the menu.
I've already tried to change the minimal SDK version, but this makes the application very unstable and makes it crash when the orientation is changed:
<uses-sdk android:minSdkVersion="14" />
Is there an other way to remove the options menu? Now there is just a large options menu in the bottom of my screen that has no menu items.
Ok, you're right in that this empty action overflow menu is added because of your lack of hardware menu button.
On a Nexus 7 it's not such an issue as the empty overflow menu is added at the end of the other soft buttons.
On a HTC One, however, you can configure the Home button to act as a menu button, which removes the action overflow button.
It's not correct to say you can't add items to the menu. My Android session at CodeRage 8 shows how to add menu items. However, I'll grant you, it's a bit of a faff.
In order to remove it, the docs say you should set the targetSdkVersion attribute (not minSdkVersion) in your Android manifest to 14 (see this blog post for details). However having tried this it causes a crash if you don't prevent rotation in the RTM version of XE5, as you saw with your tests. This issue is sat in QC, logged some weeks back, hopefully to receive a fix in the near future.
However you should consider restricting the rotation as one course of action...... This is easy enough.
you must change in manifest android:configChanges="orientation|keyboardHidden">
to:
android:configChanges="orientation|keyboardHidden|screenSize">
then you can set minsdk, maxsdk, targetsdk as you want, and application will not crash

Android - No hardware menubutton

I concluded the newer android tablets doesn't have a hardware Menubutton anymore.
So I was wondering if I have to insert an menu button in my own (fullscreen) app or does android offer a software included menubutton itself (even when my app runs fullscreen)?
(I don't have an android phone/tab myself to test, so I asked here)
Thanks,
Dennis
You should move away from menu buttons. It's the new style of Android applications. See this post from Android developer with the reasons to remove the button and what applications should do instead of offering a menu button.
Most of devices which are not having menu hardware button runs on android 3.0 or greater version
You just need to add one parameter as showAsAction.
Which will show menu item on action bar.
Concider reading ActionBar tutorial
Change the manifest file: you should change targetSdkVersion to <= 10.
Like this:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="9"/>

Android 3.0 (HoneyComb) context menu question

When I try to show context menu in Android 3.0 instead of normal menu I see smth like in this picture - which is basically text edit/select menu.
On other devices (e.g. for SDK 5-9) it shows my context menu registered for my TextView
Anyone knows - what's going om?
I have found solution by entering in AndroidManifest.xml following snippet:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="11"/>
After that context menu in tablets is appearing as on other devices. Essential part is android:tagetSdkVersion attribute

Categories

Resources