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
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

I have to reboot BlackBerry programatically

Hello Friends,

 

I have to restart BB device automatically without user interaction, How it is possible?

 

Reason to do this:- I create an application with some dependant modules, when user selects to delete application, Device ask to reboot. In case user press "Reboot Later", Since, application is not completely un install from device, This may cause errors.

 

As i found an old thread 

http://supportforums.blackberry.com/t5/Java-Development/requestStorageMode-resets-the-device/m-p/318...

 

In which i found that 

Device.requestStorageMode();

 is a bug but may trunoff device. So Can i use this to fulfill my requirement.

 

Need guidence from RIM staff.

Regards,
Ajit Sharma
Please use plain text.
Developer
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: I have to reboot BlackBerry programatically

Other kind of code like to uninstall runtime modules needs user interaction and user may disallow to restart,

or Device.requestPowerOff(boolean allowAutoOn) is just poweroff screen not reboot the device.

Regards,
Ajit Sharma
Please use plain text.
Developer
simon_hain
Posts: 15,874
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: I have to reboot BlackBerry programatically

iirc the trick was to install a codemodule with autostart and delete it again, but maybe you can find more details using a search.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: I have to reboot BlackBerry programatically

My Application is autostart, but at time of uninstallation user may select option to restart later, I want to remove this step.

Means i want an compulsory restart after application delete.

Regards,
Ajit Sharma
Please use plain text.
Developer
simon_hain
Posts: 15,874
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: I have to reboot BlackBerry programatically

with deletion i mean http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/CodeModuleManager.html#... or similar, the force parameter should avoid a popup.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: I have to reboot BlackBerry programatically

But how i can override native deletion process?

Regards,
Ajit Sharma
Please use plain text.
Developer
simon_hain
Posts: 15,874
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: I have to reboot BlackBerry programatically

ok, i did not read your question correctly, sorry.
you cannot override it, if the user decides to do that it is his own problem.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: I have to reboot BlackBerry programatically

In that case my application will not uninstall from device, and other modules(related with my application) will create problem because i am working on some type of security related application.

 

I also tried with Global Event Listener and System Listener2 but no luck:smileysad:

 

Is there no way to restart device programatically??

 

Regards,
Ajit Sharma
Please use plain text.
Developer
simon_hain
Posts: 15,874
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: I have to reboot BlackBerry programatically

well, i already told you how to restart the device programatically.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
sajit56
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: I have to reboot BlackBerry programatically

Any words from RIM Staff???

Regards,
Ajit Sharma
Please use plain text.