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


DCI FOOT SWITCH PEDAL 2 POSITION 1/PK. SELECT SPS # 9406 picture

DCI FOOT SWITCH PEDAL 2 POSITION 1/PK. SELECT SPS # 9406

$132.99



ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR picture

ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR

$19.95



WPS30V 60V 120V 160V 2A 3A 5A 10A Lab Adjustable DC Power Supply Variable Switch picture

WPS30V 60V 120V 160V 2A 3A 5A 10A Lab Adjustable DC Power Supply Variable Switch

$110.19



1PC NEW Enclosed Switch SHL-W2155  picture

1PC NEW Enclosed Switch SHL-W2155

$7.45



(5) Westlock Controls SW10001-001 Micro Switch picture

(5) Westlock Controls SW10001-001 Micro Switch

$99.95



1/8-1/2 INCH NPT ELECTRIC RADIATOR FAN THERMOSTAT TEMP-ERATURE SENSOR SWITCH KIT picture

1/8-1/2 INCH NPT ELECTRIC RADIATOR FAN THERMOSTAT TEMP-ERATURE SENSOR SWITCH KIT

$19.95







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