简体   繁体   English

Android 6.0.1 双击电源按钮的解决方法

[英]Workaround for Android 6.0.1 Double Tap on power button

I have a service running on my app and I'm listening the power button press.我的应用程序上运行着一项服务,我正在听电源按钮按下的声音。

Succinctly, my app is a panic button that, when the user press the power button four times, it starts an service for sending the user's location.简而言之,我的应用程序是一个紧急按钮,当用户按四次电源按钮时,它会启动用于发送用户位置的服务。

My app works flawlessly on android 6-, but I faced a problem running it on a Nexus running Android 6.0.1, because the Double Tap to open camera.我的应用程序在 android 6- 上完美运行,但我在运行 Android 6.0.1 的 Nexus 上运行它时遇到了问题,因为双击打开相机。

There is a way of handling this on my app, or because this camera shortcut is a system service I can do nothing about?有一种方法可以在我的应用程序上处理这个问题,还是因为这个相机快捷方式是一个系统服务,我无能为力?

The final word is, no.最后一句话是,不。 There's no way to solve this.没有办法解决这个问题。 Since this functionality is Nexus exclusive, the user who want this can't use my app's functionality.由于此功能是 Nexus 独有的,因此需要此功能的用户无法使用我的应用程序的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM