02-06-2012 04:50 AM
Hi I,m using BB9860 on that when ever i hit the manual backbutton my application is exit i want it goes to the previous page how can i do that?,can any one instruct me? thank you
02-06-2012 12:40 PM
Hey, i haven't used it myself but the documentation explains a SystemEvent onHardwareKey function where you can catch certain keys that are pressed and attach a function. Here is a code snippet from the api:
<script type="text/javascript">
function trapForBackKey() {
blackberry.system.event.onHardwareKey(blackberry.s
}
function handleBack() {
alert("handle back button");
}
</script>
02-07-2012 07:40 AM
Thank you i have an another doubt where i have to use this in phonegap or my js file
thank you
02-09-2012 04:51 AM
What doubt?
02-09-2012 05:21 AM
Where i have to use that code in main.js or phonegap
02-09-2012 05:27 AM
I'm not using phonegap but I think it only adds some additional features to the base api of webworks, so I would try to put it in the native javascript code (main.js in your case).
02-09-2012 05:44 AM
Ok thank you let me check with that....
03-09-2012 06:32 AM
Hi
Thank you the manual backbutton is working in webworks SDK 2.2 but not in 2.3 is there any one use with 2.3.1.
The backbutton is working on the 2.3.1?
Can any one suggest me the solution.