Where is the Menu button on Nexus 7?

Mark Read

Well-Known Member
Licensed User
Longtime User
Hello,

I have finished an App for a company and now they have tested it on a Nexus 7 and say that they have no "Menu" button.

I have programmed various items in the menu and now they cannot use it!

Can anyone help?

Regards
Mark
 

Stulish

Active Member
Licensed User
Longtime User
I have added a screen shot of the menu on the Nexus 7, this is an app i created for a company, and in DEMO mode the menu button allows them to connect to different Bluetooth devices, thus the only item on the menu is 'Connect'.

The SMIDS2 copy.png shows a red circle where the menu button is

Hope this helps

Stu
 

Attachments

  • smids2.png
    smids2.png
    85.2 KB · Views: 686
  • smids2 copy.png
    smids2 copy.png
    97.6 KB · Views: 683
Last edited:
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
The SMIDS2 copy.png shows a red circle where the menu button is

Sorry Stulish but I must be blind, where is the red circle?
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
:BangHead:

oops, first time I looked, there was only one picture, now there is two - sorry.

That means, pressing the three small dots will call a menu setup with Activity.AddMenuItem? Is this correct?

Many thanks
Mark
 
Upvote 0

Stulish

Active Member
Licensed User
Longtime User
Thats correct, i have tried this app out on a Samung S3 (that has a hardware menu button and on a 10 inch un branded tablet that has a software menu button along with the Nexus 7 (that the company are using for their system), and on the software menu buttons it is seen as 3 dots.

i didn't use any different code to add to the menu so you are correct i used:

B4X:
Activity.AddMenuItem("Connect", "mnuConnect")

regards

Stu
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Hopefully Solved - Thank you.

Stulish, thanks for the prompt reply. I have contacted my client and await his feedback. It could be that he was not aware of this function! :sign0098:

Best regards
Mark
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Hello Stulish,

I don't know if you will read this but here's to hoping. Maybe even Erel is listening!

My client has tried again and says that the three dots are not visible. Could it be that this function must be turned on?

I have made a workaround, by trapping the back button and using Activity.ShowMenu with a new menu option to quit. I hope he is okay with this. But I would like to solve the original problem.

Regards
Mark
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Okay Erel, I'm getting a little out of my depth here but if I understand you correctly then you mean:

The file AndroidManifest.xml located in the objects subdirectory of my app directory. If correct, then this is present:

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>

Thanks
Mark
 
Upvote 0

Stulish

Active Member
Licensed User
Longtime User
I changed my manifest from:

<uses-sdk android:minSdkVersion="4" />

to:

<uses-sdk android:minSdkVersion="11" />

and the menu button disappeared because i do not show the title menu.

so i think Mark, you will either have to have a lower min SDK version or have a button to manually open the menu.

Regards

Stu
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
@mark and Stu:
I ran a test for you on my Nexus 7. With the manifest showing:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
If I have the below code in the Activity_create:
B4X:
Activity.AddMenuItem("COUNTRY","Visit")
Activity.AddMenuItem("CITY","Tour")
Then, the 3 dots appear on the action bar which is on the top right of the tablet. If I remove the AddMenuItem code completely from the Activity_Create, then the 3 dots do not appear at all.

When I change the manifest to this:
<uses-sdk android:minSdkVersion="4"/>
The menu (3 dots) appear at the bottom right hand corner of the tablet, regardless whethe I have any AddMenu code or not.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Many thanks for your help Stu, I will wait and see how the client finds my solution with the Back button.

If not then I will try the solution from Mahares (Thanks).

Regards
Mark
 
Last edited:
Upvote 0
Top