[Android-development] Access to Application Menu and Preferences without HW-Button

Vyacheslav Blinov blinov.vyacheslav at gmail.com
Mon Sep 16 17:40:58 CEST 2013


On Monday 16 September 2013 17:29:09 Robert Iakobashvili wrote:
> Hello,
> Some Android devices do not have HW-button Menu,
> i.e. Nexus-7.
> 
> What is the way to get access to the application menu
> (menu of the main window) in such cases?
> 
> On devices with HW-button "Menu", pressing the button
> activates the menu.
> 
> It is particularly important to access application Preferences:
> the QAction item acting as QAction::PreferencesRole menu-role.
> 
> At least true for Nexus-6 Android-4.3. every active application
> sets to Android bar symbol with 3 vertical dots -
> application Preferences.
> 
> Am I missing some standard way or Qt-Android specific way
> to get to the application menu and/or to application Preferences
> menu action without HW-button?
> Thank you in advance.
> 
> Kind regards,
> Robert
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development

IIRC because Qt Projects are building using API level 8, menu button should 
appear as black stripe at the bottom with three vertical dots, ( like on this 
screenshot with HTC One: http://cdn.gottabemobile.com/wp-content/uploads/2013/04/Android-5.0-Fix-Menu-Button.jpg
 ).
To have this menu in the action bar your project should be built with API 
level 11.

Cheers.



More information about the Android-development mailing list