11-10-2008, 08:54 AM
Join Date: Nov 2008
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Problem with event handling on a RAPC converted J2ME port...
Please Login to Remove!
This is my first post, so I hope you can help me more than my hours of googling has!
I'm currently trying to port a J2ME application to run on a Blackberry platform whilst still being a MIDlet over an Applcation.
Now, as we all probably know, J2ME applications in general call hideNotify()/pauseApp() when a phonecall / SMS is recieved. When I convert my unobfuscated J2ME application using RAPC and put it on the collection of Blackberry devices we have in the office (8100, 8800 etc etc) and in any simulator I notice that these are never called (well, startApp() is called when the red hangup button is pressed, but the game remains running during the call).
Now, on some rubbish older j2me handsets we can simply take a snapshot of the time at the start of the paint and at the end and see if there is a large time between them thus manually invoking a pause state and again, this doesn't happen on the Blackberry as the MIDlet keeps happily running at relative full speed in the background.
So that is my puzzle, Is there a way I can wrap my MIDlet in an Application that is able to handle these events without signing? or is there a Listener (like KeyListener) I can impliment in my Canvas / MIDlet class that is called when there is some kind of event / interrupt?