Android Studio:是否可以触发硬件菜单按钮 [英] Android Studio: Is it possible to trigger hardware menu button

查看:147
本文介绍了Android Studio:是否可以触发硬件菜单按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个android应用程序,有点像android手机上内置屏幕的主屏幕.我可以列出所有可用的应用程序并运行它们.我不知道要怎么做的一件事是,当用户从我的应用程序中运行一个应用程序时,我的应用程序可以触发硬件菜单按钮以显示当前的应用程序菜单.

I have an android application which kind of like a home screen of the build-in screen on android phone. I can list all the available applications and run them. One thing I don't know how to do is when user run an application from my apps, my application can trigger the hardware menu button to show the current application menus.

这可能吗?如果没有,那么如果设备已植根该怎么办.

Is this possible ? If not, what about doing it if the device was rooted.

推荐答案

为了从调用者应用程序之外的其他应用程序中打开菜单,必须先植根设备,然后才能使用代码.

In order to open up the menu from other application apart from the caller application, the device have to be rooted before the code to work.

这篇关于Android Studio:是否可以触发硬件菜单按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆