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
Developer
Posts: 65
Registered: ‎01-05-2010
My Device: Not Specified

Re: Installing app on device restarts (or crashes?) the device

[ Edited ]

I don't have any start-up code in my application.

 

I restart the device

I load the app on the device using javaloader.exe

one the application is loaded, the device restarts

 

Ok, so test 2. 

 

I delete the app

the device wants to restart so i let it

I load the app, and it does not restart

I can repeat load the app and the device does not want to restart

 

In the first case, the restart was a cold restart, I had to battery pull because the debugger had crashed.  Why it works in the second case I don't know.

 

It is true that if I run the app, then close it, and update the devices wants to restart, thats pretty consistent at least and I presume thats because I have not closed down properly, though I am not entirely sure what I am supposed to do to close it down properly, for that test I did not spawn any background threads, just open main window, display some controls, respond to back button.  This is my MainScreen class.

 

public class AppScreen extends MainScreen {
	NavigationManager navigation = null;
	protected boolean onSavePrompt() {
		return true;
	}
	public boolean onClose() 
	{
		if (null != navigation) {
			if (navigation.stack.size() > 1) {
				navigation.pop();
				return false;
			}
		}
		close();
	    return true;
	}
	public void registerNavigation(NavigationManager navigation) {
		this.navigation = navigation;
	}
}

 

---- off topic ----

 

is it a motto of RIM / a corporate mission statement - We must endeavour to ensure our developers and customers have to wait at least 5 minutes at regular intervals throughout the day !  

 

Even the forums are making me wait 5 minutes now between posts.  I spend 1/2 my working life waiting for blackberry!

 

... grrr ... sorry could not resist Smiley Happy  actually its worse than that.  It wants me to wait an hour before I can post another question.

 

Developer
Posts: 65
Registered: ‎01-05-2010
My Device: Not Specified

Re: Installing app on device restarts (or crashes?) the device

Just did

 

Publish (phone resets)

Change code, repackage

Publish (phone resets)

 

Didn't run the app or do anything with the phone directly.  It was just sat at clock screen after the reset.