BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-28-2009, 02:19 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default I need to extend GameCanvas but also UiApplication

Please Login to Remove!

Hi. I'm working on a game for the BB and I have a problem. The game was designed to work first on other mobile devices, so it extends the usual MIDlet and GameCanvas classes. Now I'm trying to port my app on BlackBerry and I'm trying to find a way to extend also the UiApplication and Screen classes, because I need to register keyListeners, trackBallListeners, to override the navigationMovement(...) method, etc. I'm sorry if I'm asking for too much or what I want can't happen, but I'm new to J2ME and RIM. Thank you!

public class game extends GameCanvas implements Runnable {...}
public class midlet extends MIDlet {...}
Offline  
Old 07-28-2009, 07:20 AM   #2 (permalink)
Knows Where the Search Button Is
 
andreybutov's Avatar
 
Join Date: Dec 2006
Location: New York City
Model: Many
Carrier: Multiple
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm afraid that you can't do that.

The BlackBerry documentation clearly states that you cannot mix two user interface types in one application on a BlackBerry device. You will need to either stick with a pure J2ME implementation (UI wise), or switch over to the RIM UI classes and drop the J2ME GameCanvas stuff.
__________________
Antair BlackBerry Software
A spam filter for a cleaner inbox, a call screener to block calls, and more great BlackBerry tools.
www.antair.com
Offline  
Old 07-28-2009, 09:10 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by andreybutov View Post
I'm afraid that you can't do that.

The BlackBerry documentation clearly states that you cannot mix two user interface types in one application on a BlackBerry device. You will need to either stick with a pure J2ME implementation (UI wise), or switch over to the RIM UI classes and drop the J2ME GameCanvas stuff.
But do you think that the RIM UI classes will do a good job in developing games, like the GameCanvas did? Thank you for your help.
Offline  
Old 07-28-2009, 09:19 AM   #4 (permalink)
Knows Where the Search Button Is
 
andreybutov's Avatar
 
Join Date: Dec 2006
Location: New York City
Model: Many
Carrier: Multiple
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Certainly. It requires a bit of a different mentality, as you have to play nice with the RIM UI classes, but we've had no trouble created games for the BlackBerry without using any of the J2ME things.

As an example, Asteroid Jane ( http://www.antairgames.com/asteroidjane.html ) was made entirely with native RIM UI classes.
__________________
Antair BlackBerry Software
A spam filter for a cleaner inbox, a call screener to block calls, and more great BlackBerry tools.
www.antair.com
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

6fFT VOLEX APPLE 3 PRONG POWER CORD E62405Sp VINTAGE
$2.95
6fFT VOLEX APPLE 3 PRONG POWER CORD E62405Sp VINTAGE  pictureVintage Apple Collectable: Amp Installation Tool 228917-1
$19.99
Vintage Apple Collectable: Amp Installation Tool 228917-1 pictureVINTAGE WORKING PEASE CO P25 1973 APPLE PEELER CORER COMMERCIAL HEAVY DUTY RARE
$900.0
VINTAGE WORKING PEASE CO P25 1973 APPLE PEELER CORER  COMMERCIAL HEAVY DUTY RARE pictureOEM Vintage Apple Design Powered Speakers M2497 USED WORKING
$40.6
OEM Vintage Apple Design Powered Speakers M2497 USED WORKING pictureVintage Letterpress Printer's Block Apple Piequick Apple Filling and Pie Crust
$0.99
Vintage Letterpress Printer's Block  Apple Piequick Apple Filling and Pie Crust picture






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