I am currently developing an app for android..
how i can capture the volume key event when user press in android phone
i am using
As mentioned in Phonegap API Docs, This following code works only in Blackberry:
document.addEventListener("volumeupbutton", yourCallbackFunction, false);
document.addEventListener("volumedownbutton", yourCallbackFunction, false);
But there's nothing harm in checking it out. It might work with the latest Phonegap SDK
hope this helps!