Start a new topic

Back Button doesn't work

Back Button doesn't work

Hi, I'm having a little issue with the backbutton on android.

I'm using phonegap 2.5. When i launch my AR view and touch the backbutton it's quit the AR view without problems. But if I touch the screen in the AR view and after the backbutton it's pause the app and when I back in I only have a black screen.

I tried to override the backbutton like this 

document.addEventListener("backbutton", onBackKey, false);

function onBackKey()





     document.removeEventListener("backbutton", onBackKey, false);



But when I click on the backbutton it still quit and it doesn't go in my onBackKey function.


Do you have any idea how fix this?

I just tried something else. I disable the back button with native code on the launch of the phonegap activity. 

It's work fine, the back button don't do anything. Until I touch the AR view and then the app quit again.

I tried to look in the sdk to see if something is done with the back button but all the code is compiled so I can't see it.

It's something with the camera or are you doing something with the back button on your sdk?
Login or Signup to post a comment