开发者

How to launch android application when volume key is pressed android

开发者 https://www.devze.com 2023-04-07 23:39 出处:网络
开发者_如何转开发i want to launch my application when the volume turned to very low.. Edit: Or my application should run in background and it should listen to the volume changes.. I think it sounds
开发者_如何转开发

i want to launch my application when the volume turned to very low..

Edit:

Or my application should run in background and it should listen to the volume changes.. I think it sounds good...

Is it possible to do that?


Use registerMediaButtonEventReceiver with a BroadcastReceiver that handles ACTION_MEDIA_BUTTON.

This thread explains it: Volume change listener?

0

精彩评论

暂无评论...
验证码 换一张
取 消