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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
matdelong
Posts: 5
Registered: ‎08-08-2011
My Carrier: Simulator
Accepted Solution

Sideloaded (OTA Installation) App installs but doesn't launch

[ Edited ]

I have developed an application using the BlackBerry JRE 6.0.0 (BlackBerry Java Plugin for Eclipse version 1.3.0) and prepared it for sideloading. After installing the .jad file onto a device running the right version to be compatible with the 6.0.0 JRE, I find that the app has installed fine (seemingly) but when I try to click the app icon, nothing at all happens.

 

This is what I've done to side-load the app:

- Go to the "deliverables\Standard\6.0.0" subdirectory of the project, and copied the .jad and .cod file to another, empty, directory

- Change the .cod file to a .zip file, and then extracted it to the current location (this results in many .cod files)

- Deleted the .zip file

- Uploaded the multiple .cod files and the one .jad file to a web server, and browsed to the .jad file from the BlackBerry browser

- Chose to install the application (didn't set permissions)

 

The installation process finishes without errors or warnings. But, as I mentioned above, when I click on the app icon on the BlackBerry, nothing at all happens. No errors, no warnings... nothing.

 

My app previously imported a package which RIM has marked as secure, which would mean my app needed to be signed. Instead of signing the app, I removed the requirement for that package. So now no signing should be required (based on the packages I'm using.) And I'm not getting the errors I was previously getting when I tried to run the installed app when it had needed to be signed.

 

Also, when using the simulator the app works fine. Both loaded through eclipse the normal way (Run As -> Blackberry Simulator) and by sideloading.

 

Do you know what might be the cause of this problem I'm seeing?

 

If you need any additional information, just let me know and I'll gladly provide it.

 

Thank you in advance for any help you provide.

 

Mat

Please use plain text.
Developer
simon_hain
Posts: 13,775
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Sideloaded (OTA Installation) App installs but doesn't launch

welcome to the support forum.

you don't have to extract the zip anymore, the plugin does that already, use the deliverables\Web directory.

try to reboot the device with a battery pull
maybe the logfile (alt+lglg on the home screen) contains useful information?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Contributor
matdelong
Posts: 5
Registered: ‎08-08-2011
My Carrier: Simulator

Re: Sideloaded (OTA Installation) App installs but doesn't launch

My deliverables/Web/6.0.0 directory is empty. Is there a manual step in the IDE I need to perform to deploy to this folder?

 

I'll check the logs and see if they are of any help as well.

 

Thanks,

 

Mat

Please use plain text.
New Contributor
matdelong
Posts: 5
Registered: ‎08-08-2011
My Carrier: Simulator

Re: Sideloaded (OTA Installation) App installs but doesn't launch

The log simply says:

 

Error

Name: Application Control

GUID: ed7944aebd0c4ae2

Time: Aug 08, 2011 11:42:31

IvHS



I couldn't find any other useful information.

 

Mat

Please use plain text.
Developer
peter_strange
Posts: 17,663
Registered: ‎07-14-2008

Re: Sideloaded (OTA Installation) App installs but doesn't launch

I suspect there is an error in the initial startup o the app that you are not seeing.  Look at the Event Log, which you can do from the 'Home screen' (the one displaying all the icons, and then press and hold the Alt button, while typing the 4 characters L, G, L, G.  Look for errors reported on your device.

 

Alternatively, you can debug on device:

http://supportforums.blackberry.com/t5/Java-Development/How-Do-I-Debug-on-a-Live-Device/ta-p/446842

 

can I confirm that the device you have loaded this on to is running at least OS 6.0?

 

BTW, I would call this Over the Air (OTA) loading, side loading I would call when you do it from some other mechanism not involving OTA, such as loading it from the SD Card.  But that is just me. 

Please use plain text.
New Contributor
matdelong
Posts: 5
Registered: ‎08-08-2011
My Carrier: Simulator

Re: Sideloaded (OTA Installation) App installs but doesn't launch

The error I mentioned above (not descriptive at all) is the only one mentioned in the log.

 

When the app is run on a device the normal way (launched through Eclipse) it works fine. Also, it works fine on the simulator. Only installing from the .jad file causes this problem.

 

I'll take your word on the terminology... I'm very new to all things BlackBerry. I was under the impression that OTA installation was a subset of side loading.

 

Thanks,

 

Mat

Please use plain text.
Developer
simon_hain
Posts: 13,775
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Sideloaded (OTA Installation) App installs but doesn't launch

applicationcontrol hints at the application missing some rights. try to change everything to allow after you install the app, then run it.

you can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/applicationcontrol/Application... to check and request permissions on runtime.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Contributor
matdelong
Posts: 5
Registered: ‎08-08-2011
My Carrier: Simulator

Re: Sideloaded (OTA Installation) App installs but doesn't launch

I found the problem eventually... In the code it was using Display.getWidth(), but I wasn't signing the app. For some reason the device I was testing on didn't bring up a signing error when launching the app. Getting ride of this call to Display solved the problem.

Please use plain text.