I want to control my android application using volume button which run in phone background all time or not. If i press volume button a certain amount of time (2/3 sec+) in the phone lock or sleep mode then it will work (ex. pressing volume button a certain amount of time in lock/sleep mode it will increase value of a counter and show after open phone or lock).
Android application doing these-
- application run in phone background or not
- after pressing volume button a certain amount of time this application will show a toast or message
Is there any way to implement this technique?
It is possible or not..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…