[Q] How to diable long press of menu button showing options menu? - Android Studio

Hi,
I have a Galaxy Tab Pro 10.1 tablet and developed an Android app which shows a webview in fullscreen mode, so no title bar in the app is visible.
The app also consists of an options menu. My problem is that a long press on the tablets menu button ( the button left to the home button) shows the option menu. The options menu should be only opened by a Javascript function I call in my webview.
Since the user should only see / work with the webview I want to disable accessing options menu by long pressing menu button. How can I disable this?
Thanks a lot...

c.m.burns said:
Hi,
I have a Galaxy Tab Pro 10.1 tablet and developed an Android app which shows a webview in fullscreen mode, so no title bar in the app is visible.
The app also consists of an options menu. My problem is that a long press on the tablets menu button ( the button left to the home button) shows the option menu. The options menu should be only opened by a Javascript function I call in my webview.
Since the user should only see / work with the webview I want to disable accessing options menu by long pressing menu button. How can I disable this?
Thanks a lot...
Click to expand...
Click to collapse
Ovverride onPause method and super it
Sent from my SM-G530H using XDA Free mobile app

Related

Miui tips and tricks

Hey all,
I just ran into this site and being a new user of Miui, it totally blew my mind.
Now I know that most of these could be found on the miui forums but for the new guys/gals here you are
This was totally brought to you but http://www.maketecheasier.com
http://maketecheasier.com/17-hidden-tips-and-tricks-for-miui/2011/05/15
1. Long press on the icon in Toggles to launch the settings for that icon.
When you pull down the notification bar, you will see the Toggle settings for plenty of options (such as WIFI, volume, backlight etc). Long press on any icon in the Toggle mode will launch the setting for that icon.
2. Built-in Screen Capture function
One of the lacking feature in Android is the lack of a built-in screen capture feature (like in iPhone). Not anymore. With MIUI, you can press the “Menu” key and “Volume Down” key at the same time to capture a screenshot. The printed image is saved in the “MIUI: directory in the sd card.
3. Press Home key to preview screens
Pressing the Home button once will bring you back to the Home screen. Pressing the Home button button will show you all the screen thumbnails. You can also ad/remove screens from here.
miui-preview-screen
4. Slide from left to right to quickly delete a message or a call log.
In the SMS or Dialer app, swipe left or right any entry will bring up the Delete mode.
5. Move home screen icon easily
Hold down an icon by one hand to enter Edit Mode, and then use the other hand to slide the screen to move the icon to the target screen.
6. Launch Music Player in lockscreen
In the lockscreen, double tap the time zone to launch the Music Player. (The Music Player is hidden by default, unless a song is playing)
miui-lockscreen-music-player
7. Quickly access the Dialer or SMS from the lockscreen
In the lockscreen, hold down the icon of Call or SMS, and you can enter the responding program.
8. Activate the torch from the lockscreen
In the lockscreen, hold down the Home button to enable the torch.
9. Access shortcut menu from contact image
In the Calls, SMS or Contacts app, tap the contact image and a shortcut menus will appear.
10. Search via voice recognition
Long press on the Search button will launch search via voice recognition.
11. Switch the Battery UI to show percentage
The default battery UI can be switched to display percentage of left battery capacity. To do so, go to “Settings -> System -> Battery Settings -> Battery Indicator Style -> Percentage“.
12. Long press on the Home button to show History
Like any other Android ROM, long press on the Home button will show the recently used apps. However, in MIUI, there is also an App Killer and App Manager button. Swiping the popup left will show the search form.
13. Setting up IP dialing
If you need to add an IP prefix for a particular number in a strange land, you can set it in Settings -> Common -> Calls Settings. Turn the “Auto IP dialing” ON and set the IP prefix and current area code.
14. Send SMS for rejected calls
When you are not available to answer the phone, you may slide up the panel to reject the call and to send a message to the caller at the same time.
15. Enable 720P to record a video
If your phone comes with a camera that support HD recording, you can enable 720P in the Video mode. Run the Camera app and switch to Video. Select “High” -> “720P” in the pop-up menu of video quality.
16. Quickly uninstall an app
To uninstall an app, simply press and hold the icon until the trash bin show up at the top of the screen. Move the icon to the trash bin to uninstall the app.
17. Quickly read SMS and mark it read
In the lockscreen, press down the SMS button (without dragging it down) to reveal the new incoming message on the lockscreen. Once you have finished reading it, double tap on the SMS button to mark it read.
The above is all the hidden tips and tricks I know about MIUI. What else have I left out?
~PsyCl0ne
http://en.miui.com/a-5.html
http://en.miui.com/a-10.html
its direct from the site
rrohanjs said:
http://en.miui.com/a-5.html
http://en.miui.com/a-10.html
its direct from the site
Click to expand...
Click to collapse
Lol but I thought you didnt like searching XP ;P
~PsyCl0ne
PsyCl0ne said:
Lol but I thought you didnt like searching XP ;P
~PsyCl0ne
Click to expand...
Click to collapse
ive learnt .. actually i read abt miui from the site before installing eybees version ..

[Q] Shortcut to power button

Hi. My power button starts to cause problems and sometimes I have to torment to bring up the menu (profiles, screenshot, reboot). Is there any way to create a shortcut to the menu? Eg "1Tap Quick Bar" app creates a shortcut, but only to reboot (even without the choice standard/CWM). I searched all activities of system apps but found nothing. As a last resort can I map the camera button as power one?
Just go to market and type "Shutdown Menu". It has everything you need.
OK thanks, but it solves my request partially. I need whole power menu with screenshot and profiles

Menu icon missing on app on S5

Tried loading Lorex Mobile Lite on new S5 today. App appears to load fine. When I run it splash screen shows up then blank screen with "No DVR set up hit menu> add connection. There is no menu button anywhere on screen. Running 4.4.2 The same app on my wife's Nexus 7 tablet running 4.4.2 shows a menu button to right of the return button on bottom of screen an then works correctly. Any idea how to get menu button to show up or atleast get into menu?
Rumbleweed said:
Tried loading Lorex Mobile Lite on new S5 today. App appears to load fine. When I run it splash screen shows up then blank screen with "No DVR set up hit menu> add connection. There is no menu button anywhere on screen. Running 4.4.2 The same app on my wife's Nexus 7 tablet running 4.4.2 shows a menu button to right of the return button on bottom of screen an then works correctly. Any idea how to get menu button to show up or atleast get into menu?
Click to expand...
Click to collapse
I've run into this on a few apps. no settings menu icon in the app, no settings menu to the left of to the home key...
if you press and hold the multi tasking button the settings menu will come up.
Russ77 said:
I've run into this on a few apps. no settings menu icon in the app, no settings menu to the left of to the home key...
if you press and hold the multi tasking button the settings menu will come up.
Click to expand...
Click to collapse
Tried that. The app was not offered as on option to open in multi mode.
Rumbleweed said:
Tried that. The app was not offered as on option to open in multi mode.
Click to expand...
Click to collapse
open the app you are trying to access the settings menu of.
press and hold the button to the left of the home button.
the settings menu of that app will then open.
pressing and holding what used to be the settings button still functions as the old settings button.
Russ77 said:
open the app you are trying to access the settings menu of.
press and hold the button to the left of the home button.
the settings menu of that app will then open.
pressing and holding what used to be the settings button still functions as the old settings button.
Click to expand...
Click to collapse
Worked perfect. was pressing the multi-tasking button. Thank You. :good:

Any way to activate menu without three dots?

I believe this has something to do with new Android system.
I have some older apps like nbpro or simple task switcher that don't have three dots. Is there any way on tab s2 to remap an existing key to menu key? For example, long press switching or long press home will activate menu?
I found that I can have more settings key by activating assistant menu under accessibility. Assistant menu is a cyan circle, once tapped, it explodes to show further onscreen keys. To able to assign more settings to a key off the screen or to a gesture would be nice. I am not ready to root my tab s2 yet. Or else using xposed would be handy.
Long press the back button. It brings up settings/menu
Long press back key does work sometimes.
In some app like nbpro, the menu, more options appear when I hold back key after lo press. When I release after the long press the more options disappear. It sometimes does not register very well. I don't know if it is something to do with the app or something to do with the system.

How to access menu in apps without three dots?

Hello,
I just got Note 9 and cannot find how to access menu when i'm in some app that don't have three dots for menu?
On my previous phone just long press and hold recent menu and get menu for app that i'm on.
For example, this app:
https://play.google.com/store/apps/details?id=com.flufflydelusions.app.enotesclassiclite

Categories

Resources