I am currently developing an android app. I have an activity which calls a web view activity. When the user presses the back button once it will go to the history of the webview, when the user double taps the back button I want the webview activity to finish.
How can I go about checking for a double tap of the back button
I think in this case, what you want is a long press on the back button. (although I believe this may have conflicts with 6.2+ cyanogen roms if the user has that feature turned on…) A double tap on the back button might be a little disruptive on a mobile device.
Following the typical way to override buttons, I’m assuming you know how to (if you need more help just say so), There must be a onLongPress(…) method that you can override to do what you want it to do.