Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
05-13-2010 01:31 PM
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
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).