Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to Autostart a Midlet

What version of the BlackBerry JDE are you using?

 

When you purchased signature keys, you should have received 3 different keys (RBB, RRT and RCR).  Please ensure that all three keys (csi files) have been installed.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
MrBawn
Posts: 26
Registered: ‎07-23-2008
My Device: Not Specified

Re: How to Autostart a Midlet

Thanks for your quick reply.

 

I'm using JDE 4.5.0, but I'm using Netbeans as my IDE.

 

As seen in this screenshot,I do have all 3 keys, but the signature tool isn't requesting RRT for my cod file. How do I force it to use all the keys?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to Autostart a Midlet

The rapc compiler may not be detecting that RRT is required since you are manually editing the JAD file. 

 

You can work around this by manually editing the .csl file for your application.  The .cso file contains signature keys you have installed and the .csl contains a list of keys that are required.  You can copy and past the RRT entry from the .cso file to the .csl file before launching the SignatureTool.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
MrBawn
Posts: 26
Registered: ‎07-23-2008
My Device: Not Specified

Re: How to Autostart a Midlet

I don't see a csl file in here, but here are the contents of my cso file:

 

33000000=RIMAPPSA2
52424200=RIM Blackberry Apps API
52434300=RIM Crypto API - Certicom
52434900=RIM Crypto API - Internal
52435200=RIM Crypto API - RIM

 

What do I add to it?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to Autostart a Midlet

An RRT entry looks like this:

 

52525400=RIM Runtime API

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
MrBawn
Posts: 26
Registered: ‎07-23-2008
My Device: Not Specified

Re: How to Autostart a Midlet

[ Edited ]

w00t! That did the trick. Thanks!

 

(Hey, how do I give a kudo?)

Message Edited by MrBawn on 09-29-2008 01:54 PM
New Developer
osilva
Posts: 26
Registered: ‎09-24-2008
My Device: Not Specified

Re: How to Autostart a Midlet

well the first application i was trying to make autostart was a gps tracking application, it takes the gps data and sends it through internet to a database, i though the gps was giving some problems in the autostard. i did another application very small, i  set the flag, signed (RRT, RBB, RCR) 

 

after donwloaded again the app autostarted automaticaly, but when i restart the Device, nothing happened :smileysad:

 

what should i do.. there must be something that im not doing. 

Developer
MrBawn
Posts: 26
Registered: ‎07-23-2008
My Device: Not Specified

Re: How to Autostart a Midlet

Start up the JDE. Pull the phone's battery. Pop the battery back in and hook the phone up to the USB. As soon as the screen lights up, attach the debugger to the phone. Then open the output window. You should at least see some log messages about your application.
Developer
MrBawn
Posts: 26
Registered: ‎07-23-2008
My Device: Not Specified

Re: How to Autostart a Midlet

Oh, and there's a huge difference between powering off the device and pulling the battery. When you power off the device by either holding down the end key or selecting "turn power off" from the apps menu, the phone doesn't completely shut down. Whatever state your phone was in before turning the power off is maintained and restored when you power the phone back up. Applications that are registered to auto start are not restarted because they should already be running.

 

If you want to know that that the device has been powered off or powered on with the end key, you should implement a system listener and add it to your application. If you are writing a MIDlet and not an application, you can still register a system listener by doing Application.getApplication().addSystemListener(sysListener). However, your listener will get deleted if you call notifyDestroyed, so don't do that. Set your display to null instead.

New Developer
sowmya
Posts: 2
Registered: ‎10-22-2008
My Device: Not Specified

Re: How to Autostart a Midlet

But i have 52525400=RIM Runtime API entry in .cso  file..Still it shows error on deploying it in the blackberry device