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


Branson 902J Ultrasonic Welder  Transducer Amplifier & Horn 101149098,416026021 picture

Branson 902J Ultrasonic Welder Transducer Amplifier & Horn 101149098,416026021

$599.00



Trek Model 677 High Voltage Supply / Amplifier picture

Trek Model 677 High Voltage Supply / Amplifier

$1299.99



Trek 677A High Voltage Supply / Amplifier picture

Trek 677A High Voltage Supply / Amplifier

$1500.00



Adafruit Audio IC Development Tools Adafruit Mono 2.5W Class D Audio Amplifier - picture

Adafruit Audio IC Development Tools Adafruit Mono 2.5W Class D Audio Amplifier -

$5.95



GAMEWELL-FCI *AA-100* SERIES AUDIO AMPLIFIER picture

GAMEWELL-FCI *AA-100* SERIES AUDIO AMPLIFIER

$850.00



Honeywell Ultraviolet Flame Amplifier RM7890 A 1015 picture

Honeywell Ultraviolet Flame Amplifier RM7890 A 1015

$199.99







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