Ok I have the solution. First - BIG THANK YOU to Rajesh who helped me
figure out what was going on.
None of Rajesh's suggestions were working because my phonegap.js was
missing backkey support.
If you have this same issue, look inside your phonegap.js and you
should see:
Device.prototype.overrideBackButton = function()
and other BackButton support functions.
If your phonegap.js doesn't, goto
phonegap.com and download the latest
full build form github,
I used the 0.9.1 download because edge was/is messed up. Go to the
github link instead and
click on "Download Source"
Look inside the new phonegap.js and make sure the BackButton stuff is
in there.
Recompile your project with the new phonegap files.
Now here is the code I'm using to manually set the Back Button to go
back:
document.addEventListener("deviceready", function(){
device.overrideBackButton();
document.addEventListener("backKeyDown", function(){
history.go(-1);
}, false);
}, false);
I have no crashes. Works perfectly. Let me know if anyone has any
questions on this.
Thanks Rajesh!!
On Aug 10, 9:20 pm, Henry Levak <
henryle...@gmail.com> wrote:
> debugger says the follwoing when trying to use the overrideBackButton
> function
>
> 08-10 21:18:42.885: DEBUG/PhoneGapLog(2980):
> file:///android_asset/www/index3.html: Line 21 : TypeError: Result of
> expression 'device.overrideBackButton' [undefined] is not a function.
>
> >
phonegap+u...@googlegroups.com<
phonegap%2Bunsu...@googlegroups.com>