03-25-2010 08:12 AM
Is this normal?
I am using the following commands (in a batch file) to install my application on the device:
@echo offset JAVALOADER=C:\Java\Blackberry-1.1\plugins\net.rim.
ejde.componentpack5.0.0_184.108.40.206\components\bin\ja valoader.exe cd deliverables\5.0.0 "%JAVALOADER%" -usb load Summit.jad cd ..\..
SInce my last build (a small change to a URL in the code) when I try and load this application, it resets the device (which I then have to wait several minutes for it to boot up).
03-25-2010 08:30 AM
if your app is still running, or has a background process running, the BB has to reboot to replace it.
03-25-2010 01:16 PM
To expand on simon_hain's comment, most likely an object of a class that is defined in your application is still referenced (hard- or soft-) from somewhere (a process hosting your app is still running, or it may be a listener you forgot to unregister, or an object of yours stored in the RuntimeStore or Persistent Store).
03-25-2010 02:08 PM
Some additonal reasons here:
What Is - The reason a reset is required when upgrading an application
Article Number: DB-00602
03-25-2010 02:15 PM
It looks like issue 7 from the above KB has been resolved on v5.0+ handheld software. I can easily update an application consisting of one large application-type module (i.e., split into multiple sibling modules) without the need to reboot. It's much faster than restarting the simulator after a code change.
03-25-2010 02:23 PM - edited 03-25-2010 02:25 PM
Agreed, and I don't think that article is a complete list anyway.
Further discussion here too:
03-26-2010 05:59 AM
My app is very much in the early stages of development and I am still very much learning about blackberry development. I do use the persistent object store, perhaps I have forgot to close my reference to it once finished.
Also, I have a background thread processing a job queue, do I need to take special action to close that thread?
Also, when the user hits the back button at the top level screen, do I need to respond to that in some way to properly close off my application?
This is all stuff that I will need to find out during the development of this app, and I would normally just cross each bridge as I came to it.
03-26-2010 06:25 AM
If you have extended MainScreen, then I understand that the default action on close() at the top layer is to do a System.exit(). This will kill your Thread, possibly at an inconvenient point,- that depends on your Thread processing. It might be better to override the close() on the top level screen, put the App in the Background (so the user thinks it is gone), then tell the Thread it is time to go. When the Thread reaches a convenient point it can call System.exit().
04-20-2010 04:19 AM - edited 04-20-2010 04:24 AM
I get restarts now installing an application immediately after a restart, so it can't be that the code is running.
I am using: javaloader.exe -usb load appname.jad
This is extremely annoying because it takes so long to restart.
*edit* this is on a Storm II
04-20-2010 04:34 AM
Not sure I understand this:
"I get restarts now installing an application immediately after a restart".
If you have some start up code - for example something that changes the application icon, then restarting the device before you update your application is not going to help is it?
Try deleting your application, then restarting, then updating. Tell us if that causes a restart.