BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-10-2008, 08:54 AM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Model: None
PIN: N/A
Carrier: None
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with event handling on a RAPC converted J2ME port...

Please Login to Remove!

Hey guys,

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?

Many thanks.

-- Neil
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

(1PCS) STR752FR2T6 MCU 32BIT 256KB FLASH 64-LQFP 752FR2 STR752FR2
$11.46
(1PCS) STR752FR2T6 MCU 32BIT 256KB FLASH 64-LQFP 752FR2 STR752FR2 picture(1PCS) STR751FR2T6 MCU 32BIT 256KB FLASH 64-LQFP 751FR2 STR751FR2
$11.46
(1PCS) STR751FR2T6 MCU 32BIT 256KB FLASH 64-LQFP 751FR2 STR751FR2 picture(1PCS) STM32F101R6T6 MCU ARM 32KB FLASH/TIMER 64-LQFP 32F101 STM32F101
$8.78
(1PCS) STM32F101R6T6 MCU ARM 32KB FLASH/TIMER 64-LQFP 32F101 STM32F101 picture(1PCS) ST72C334J2T6 MCU 8BIT FLASH SPI SCI 44TQFP 72C334 ST72C334
$11.16
(1PCS) ST72C334J2T6 MCU 8BIT FLASH SPI SCI 44TQFP 72C334 ST72C334 picture(1PCS) STR715FR0T1 MCU 32BIT 64K FLASH 64-LQFP 715FR0 STR715FR0
$11.12
(1PCS) STR715FR0T1 MCU 32BIT 64K FLASH 64-LQFP 715FR0 STR715FR0 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.