I just want to make a simple android app that will store a phone number.
Now when I connect my bluetooth headset with my android device and when I push call button of my headset, I just wanted that my app listen that key event and call that particular saved number.

Suggest me how should I do it. Since I am new in android development then any help with code snippet would be appreciated.