If an user presses volume key up and down, is it possible to detect it in my broadcast receiver?
I need the full code. This question have been already asked on http://stackoverflow.com but was not answered properly.
I have been searching for a solution to this question from the past three weeks but unable to find proper answer.
I want code snipet for:
1) public class MainActivity extends Activity {}
2) public class VolumeKeyReceiver extends BroadcastReceiver {}
3) AndroidManifest.xml
please help!!