1

Am facing an unusual problem on blackberry, after i have signed my app with the 3 keys and say "load onto device" via Eclipse Java Plugin for Blackberry - the app loads successfully on the device, but when i click on it to launch it - does not open up, nor even a error or a dialog pops up. Please Help - Cant find a solution for this!

Droido
  • 167
  • 2
  • 10

3 Answers3

4

I have often had this issue using the 9800 device. After loading apps to the device it starts "not launching". If you go to options -> application manager -> your app's permissions you might see some permissions as custom. Setting these to "allow" fixes it. After a while it stopped launching even when allowed, deleting the app and letting the device reboot fixes it.

This is my personal experience, I don't know what the official bug/fix is

Kevin
  • 1,626
  • 16
  • 30
  • Thanks! it worked, but need not to reboot it, directly worked. Just being curious why is the permission set to "Custom" by default? Will that cause a prob each time? What are the cons for it? – Droido Jul 30 '13 at 07:26
  • I haven't been able to find the reason for it, but it's only happened on that device for me. I haven't experienced it on the 9900 or the 9380. This might be because they are OS7, where the 9800 is 6. Might be as simple as OS6 is crap buggy. As for causing a problem I don't think you need to worry. Users won't install your app multiple times like that. – Kevin Jul 30 '13 at 10:19
  • Ty, also what all changes need to be made in a case when a project is developed using jre 5.0 and also needs to support for OS 7.1, can u please help out? – Droido Jul 30 '13 at 11:48
  • I have only worked in 6 and 7, sorry. I don't know any of the quirks there. But I'd suggest testing on a 5,6, and 7; since with blackberry a higher version means nothing. There are many functions introduced in 5 that don't work in 6, but work in 7 again. – Kevin Jul 30 '13 at 12:13
1

Implement logging in your application. Log every step on the application startup and write log to a text file, located on device SD Card.

When your application has been installed and you have tried to launch it, check this text file to find out, what is going wrong with your application.

Also there is internal logging mechanism, you may employ it, instead of logging to text file.

From my point of view internal log is more suitable for simple logging purposes. If you want complex logging, then text file located on SDCard is preferred.

  • this works on a simulator! :P but on a device, is this a java version issue? – Droido Jul 26 '13 at 13:22
  • 1
    Make sure that device RIM OS version is bigger or equals to Java SDK version you have used to compile your application. –  Jul 26 '13 at 16:22
  • this was working when i previously had deployed it, all a sudden this happens? – Droido Jul 30 '13 at 06:56
  • As mentioned before by @Turdnugget the reason can be related to permissions. Permissions are not required to be set when you are running your app on simulator, but when you launch it on actual device they should be set. Sometimes permissions have been requested automatically upon an action. But sometimes not. And it leads to strange things. According to your application functionality invoke permission request at startup. Use [ApplicationPermissionsManager](http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/applicationcontrol/ApplicationPermissionsManager.html) class. –  Jul 30 '13 at 07:21
  • Just being curious why is the permission set to "Custom" by default? Will that cause a prob each time? What are the cons for it? – Droido Jul 30 '13 at 07:28
  • I have no idea why RIM OS does that. –  Jul 30 '13 at 08:58
  • you have answered here that the compatibility works on OS 7.1 - any ideas how to do that, any changes to the project properties? http://stackoverflow.com/questions/15288748/can-i-run-my-5-0-sdk-application-to-devices-having-bb-7-1-os – Droido Jul 30 '13 at 12:21
  • 1
    If you have compiled your application with RIM SDK 5.0, then your application will work on device with RIM OS 7.0. But the user experience [won't be good](http://docs.blackberry.com/en/developers/deliverables/13222/Controlling_compatibility_mode_705034_11.jsp). I recommend to use preprocessor and compile separate application versions for separate RIM OS versions. –  Jul 30 '13 at 12:38
  • am running it on a 7.1 simulator to check. As am a newbie in that case can help in how to use preprocessor and compile separate application versions for separate RIM OS versions - or if provided a pointer to it. Thanks! – Droido Jul 30 '13 at 12:48
  • Check [this link](http://stackoverflow.com/questions/17944306/same-application-on-different-blackberry-handsets/17946504#17946504). –  Jul 30 '13 at 13:35
1

Try to start the app, then check the device event log. To open the event log viewer, hold 'Alt' and then press L,G,L,G. You will likely see an error explaining the problem in the event log viewer.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44