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


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS
$65.0
NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS pictureNEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS
$29.0
NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS pictureNEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS
$65.0
NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS pictureNEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS
$29.0
NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS pictureNEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS
$65.0
NEW HOLLAND-SERVICE REPAIR MANUAL-ALL MODELS picture






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