11-23-2010 02:45 AM
I am opening payment gateway in hte blackberry embedded browser.
Once the transaction is completed am calling a webservice to confirm whether the transaction is completed or not, based on this result I need to display the user an alert.
I want to know when the user closes the browser so as to display the alert according to the success of failure of the transaction.
Is there any possibility to detect the 'Esc' event or any other event that tells about the close of the Blackberry browser ?
Solved! Go to Solution.
11-23-2010 04:45 AM
I am not aware of any way to do this. Actually I would suggest that it is not necessarily an appropriate thing to do, since the user may switch back to your Application without exiting the Browser. So I would use the return to your Application to trigger your web service call. There are two options:
a) Create an onExposed() method, when you start the Browser set a flag, and then, in your onExposed() method, if the flag is set, you have returned from the Browser session and can check.
b) Do the same sort of processing but use Application methods deactivate() and activate().
11-23-2010 04:51 AM
Many Thanks for your reply.
I presume, the onExposed() you are refering is Screen.onExposed();
I will let know the result.