开发者

How to launch android application when volume key is pressed android

开发者_如何转开发

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜