BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-12-2005, 08:17 AM   #1 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Auto-Run on startup does not work for me!

Please Login to Remove!

it's probably nothing but my app does not seem to start on my hard blackberry device. On the Emulator i have no problem at all, the Auto Start worj just fine. but on real devices, i had no luck.

here is my case

The project name is "MISyncAgent"

The class with the Main is called "SyncAgentApp"


the main is pretty simple

Quote:
public static void main( String[] args )
{

//TEST
SyncAgentApp.addMessageToFolder( SyncAgentApp.messageFolderName, "BEGIN" );
SyncAgentApp app = new SyncAgentApp();
app.enterEventDispatcher();
}
the addMessageToFolder methode public static use to log some traces

the project properties are
Quote:
Project Type : CLDC Application
Ribbon : set to none
Auto-run :Enabled
System Module : Enabled
Startup Tier : 6

BTW: My application is well Signed

i'm using the RIM Device Java Library 3.6 Release
So... Why it's running Very well on the emulator but not on my devices, i have try 6 Differentes device, all with the same result.

Is this something that i have to do with the JavaLoader? Do i have to tell to the JVM where to find the "main" Methode....
Please help!

Carignan

Last edited by Carignan : 07-12-2005 at 08:58 AM.
Offline  
Old 07-12-2005, 08:54 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2005
Location: Columbus, OH
Model: 7100G
Posts: 44
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Carignan
it's probably nothing but my app does not seem to start on my hard blackberry device. On the Emulator i have no problem at all, the Auto Start worj just fine. but on real devices, i had no luck.

here is my case

The project name is "MISyncAgent"

The class with the Main is called "SyncAgentApp"


the main is pretty simple



the addMessageToFolder methode public static use to log some traces

the project properties are


So... Why it's running Very well on the emulator but not on my devices, i have try 6 Differentes device, all with the same result.

Is this something that i have to do with the JavaLoader? Do i have to tell to the JVM where to find the "main" Methode....
Please help!

Carignan
Did you sign the APP with a key from RIM? You must do this for an app to run at startup
Offline  
Old 07-12-2005, 08:57 AM   #3 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes it is signed
Offline  
Old 07-13-2005, 07:57 AM   #4 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found my bug, i was using the library import "net.rim.vm.Persistable". it seem taht library required a special Signature, so the App was refusing to start. Instead, i'm using now "net.rim.device.api.util.Persistable". and everything is back to normal. Anyone can add comment on that?
Offline  
Old 07-21-2005, 12:27 PM   #5 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100t
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The net.rim.vm.Persistable class is a class used by the operating system, while the net.rim.device.api.util.Persistable class is the version that RIM would like developers to use. This is probably because the net.rim.vm.Persistable class is likely to change. Classic case of hiding the things that can change. While the underlying implementation of the Persistable class may change, the public class will change to meet that, thus avoiding massive code breakage.
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

ESI 100 Communication Server 8pt/140 HR CF With Power Supply A4 PC E2 612 PC
$899.0
ESI 100 Communication Server 8pt/140 HR CF With Power Supply A4 PC E2 612 PC pictureInter-Tel 550.5388 PS-1 IAWC WCRS Server up to 25 Ports
$99.99
Inter-Tel 550.5388 PS-1 IAWC WCRS Server up to 25 Ports pictureThemis CS-5U CMAC 116892-L01 X5 CoolShell Blade Server Chassis Management Board
$149.99
Themis CS-5U CMAC 116892-L01 X5 CoolShell Blade Server Chassis Management Board pictureThemis CS-5U CMAC CoolShell Blade Server Network Board Module Card +DB127015BU
$149.99
Themis CS-5U CMAC CoolShell Blade Server Network Board Module Card +DB127015BU pictureServer 83410 SOLUTION PUMP PSSS-F
$25.0
Server 83410 SOLUTION PUMP PSSS-F picture






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