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


KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier picture

KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier

$249.99



New In Box MITSUBISHI MR-J2S-60A AC Servo Amplifier Drive picture

New In Box MITSUBISHI MR-J2S-60A AC Servo Amplifier Drive

$185.00



NEW Vickers EHH-AMP-702-D-20 Plug Amplifier picture

NEW Vickers EHH-AMP-702-D-20 Plug Amplifier

$281.15



Phoenix Contact 2864406 MCR 3-way isolating amplifier - for electrical isolat... picture

Phoenix Contact 2864406 MCR 3-way isolating amplifier - for electrical isolat...

$333.07



1PC Plug Amplifier   EHH-AMP-702-D-20 picture

1PC Plug Amplifier EHH-AMP-702-D-20

$274.20



10PCS/New In Box SMD TDA8950TH Chip Audio Amplifier 340W HSOP-24 picture

10PCS/New In Box SMD TDA8950TH Chip Audio Amplifier 340W HSOP-24

$181.58







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