BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-28-2009, 02:19 AM   #1
cristisor
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 15
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
andreybutov
Knows Where the Search Button Is
 
andreybutov's Avatar
 
Join Date: Dec 2006
Location: New York City
Model: Many
Carrier: Multiple
Posts: 21
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
cristisor
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 15
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
andreybutov
Knows Where the Search Button Is
 
andreybutov's Avatar
 
Join Date: Dec 2006
Location: New York City
Model: Many
Carrier: Multiple
Posts: 21
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage Siemens Richtig 3 Phase Rotation Meter with Case picture

Vintage Siemens Richtig 3 Phase Rotation Meter with Case

$75.00



Square D Wiggy AC/DC Voltage Tester, Voltmeter #6610 Type VT-1, Vintage  picture

Square D Wiggy AC/DC Voltage Tester, Voltmeter #6610 Type VT-1, Vintage

$29.77



Machinist Lathe Lot Tool Holder Armstrong Williams Bits Vintage Antique Starrett picture

Machinist Lathe Lot Tool Holder Armstrong Williams Bits Vintage Antique Starrett

$95.00



Vintage Bulb Illumination Fragrance Warmer Wood and Glass picture

Vintage Bulb Illumination Fragrance Warmer Wood and Glass

$24.99



KP KOOL PRODUCTS Aftermarket Pre-Ban Chilton/Vintage Craftsman (1 YELLOW SPOUT) picture

KP KOOL PRODUCTS Aftermarket Pre-Ban Chilton/Vintage Craftsman (1 YELLOW SPOUT)

$14.99



Vintage Dental Splint Set Arch Wire - Feb 1957 picture

Vintage Dental Splint Set Arch Wire - Feb 1957

$99.99







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