BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-30-2009, 10:56 AM   #1 (permalink)
New Member
 
Join Date: Oct 2009
Model: 9000
PIN: N/A
Carrier: aircel
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Is there any interface available in bb api which I can use instead of extending UiApp

Please Login to Remove!

The aim is to enter the app without using enterEventDispatcher. My app inherits class manager, so I can't really inherit UiApplication class. That's why my app isn't getting started. Any solution??

Thanks
Offline  
Old 10-30-2009, 01:06 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You cannot have a CDLC app UI app without extending UiApplication.

If you do not have a UI, you can extend application.

What is the objection to UiApplication?
Offline  
Old 11-04-2009, 10:04 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2009
Location: Quebec, Ca
Model: 8330
OS: v4.5.0.77
PIN: 30293EF0
Carrier: Telus
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
a manager is a container that need to be added to a screen.
You need an entry point for your application that contain the main method. That entry point need to extends UiApplication. Then you'll be able to push a screen with your manager.

You can try something like this :
Code:
public class MainApplication extends UiApplication {
	public MainApplication() {
		MainScreen screen = new MainScreen();
		screen.add(new <YourManager>());

		pushScreen(screen);
	}
	
	public static void main(final String[] args) {
		MainApplication theApp = new MainApplication();
		theApp.enterEventDispatcher();
	}
}

Thank you, have a nice day.

--
Samuel D.
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





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