BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-10-2008, 05:46 AM   #1
Nemat
New Member
 
Join Date: Jun 2008
Model: 7100T
PIN: N/A
Carrier: wireless carrier
Posts: 14
Default Alternate Entry Point

Please Login to Remove!

Hi frndz....
I m working on Synchronization API. I wanna write a method to backup and restore data.now I've created a project which acts as an alternate entry point and another project in which I used SyncItem class.My prob is that I dont know how to enter through alternate entry point??
Plzzz help me .I m new to Blackberry Programming.I read about Synchronization API from Articles given on the site of Blackberry.Its very urgent..........
Offline  
Old 06-10-2008, 06:12 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

you create another project and set it to "alternate cldc application entry point"
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 06-10-2008, 06:42 AM   #3
irlennard
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
Default

When you create your alternate entry project, make sure you enter something in the "Arguments passed to..." field (e.g. "my_argument").

Now, in your main class, your main() function looks like this:

Code:
public static void main(String[] args)
{
	if (args != null && args.length > 0 && args[0].equals("my_argument"))
	{
		// Alternate entry point

		// Do something here.
	}
	else
	{
		// Normal entry point
		// Start app and enter event dispatcher.
		TheApp theApp = new TheApp();
		theApp.enterEventDispatcher();
	}
}
Hope this helps.

-- IRL

Last edited by irlennard; 06-10-2008 at 06:43 AM..
Offline  
Old 06-11-2008, 01:24 AM   #4
Nemat
New Member
 
Join Date: Jun 2008
Model: 7100T
PIN: N/A
Carrier: wireless carrier
Posts: 14
Default

Thnx a lot.....
I've successfully set my project as Alternate Entry Point.
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


Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$12.00



IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360 picture

IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360

$18.00



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



IBM CASH DRAWER KEY'S #9952 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3352 picture

IBM CASH DRAWER KEY'S #9952 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3352

$18.00



OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79







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