BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
rohit.roy Offline
New Member
 
Posts: 9
Join Date: Oct 2009
Model: 9000
PIN: N/A
Carrier: aircel
Question Is there any interface available in bb api which I can use instead of extending UiApp - 10-30-2009, 11:56 AM

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 793
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 10-30-2009, 02:06 PM

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?
   
Reply With Quote
  (#3 (permalink)) Old
SamuelD Offline
New Member
 
Posts: 12
Join Date: Feb 2009
Location: Quebec, Ca
Model: 8330
OS: v4.5.0.77
PIN: 30293EF0
Carrier: Telus
Default 11-04-2009, 11:04 AM

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.
   
Reply With Quote
Reply


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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.