05-13-2010 01:31 PM
Hello,
I'm manually installing a library package that contain some bitmaps. I'm able to download and install the cod file but when I save the new module, the method isResetRequired() method return false.
Next I start the application but no images are shown. Images are obtained with Bitmap.getBitmapResource(module, name);
I tried to force the reset of the device with :
int timeDelay = 1000 * delay; ApplicationManager myMgr = ApplicationManager.getApplicationManager(); ApplicationDescriptor myDsc = ApplicationDescriptor.currentApplicationDescriptor(); Date myDate = new Date(); myMgr.scheduleApplication(myDsc, myDate.getTime()+timeDelay, true); Device.requestPowerOff(true);
But it doesn't seem to work on simulator. If I restart (Shift + ALT + DEL) the device (real one) the images appears without any problem.
I'm using OS 4.5 with a Curve 8330.
Solved! Go to Solution.
05-17-2010 04:16 PM
Has the library been loaded before the application? If not, a reset may be required. Note that the library itself may not require a reset (which is why you see false) but a reset could be required for your application to link to the library (if it was already installed).
05-17-2010 04:25 PM
Hi,
the application is installed on the device and after that, it look for required module. If those modules can't be found, the application will download and install it. Is there a way to link my application to the newly installed library to force a restart?
05-17-2010 04:31 PM
There is no way for a third party application to programmatically kick off the linking process. I think the closest you can get is to prompt the user to manually perform a hard reset to complete your install.
05-17-2010 04:37 PM
Ok I tought that would be the answer. For the hard reset, Is there a way to show the (Reset is require) popup? I saw some hints on the forum, but it talk about installing - running - uninstalling a dummy application. I'd love to avoid that kind of manipulation if possible.
05-17-2010 04:52 PM
There is no direct way to show that reset prompt, unless an action taken on an individual COD file actually does require a reset (such as the workaround you describe).