开发者

Forcing BlackBerry to do a hard restart after app installation

开发者 https://www.devze.com 2023-03-25 17:28 出处:网络
I\'ve been experiencing unexplained connection issues with my BB app. This only happens on a Curve 8520, and only on some of them. There is no noticeable pattern so i cant determin开发者_如何学编程e w

I've been experiencing unexplained connection issues with my BB app. This only happens on a Curve 8520, and only on some of them. There is no noticeable pattern so i cant determin开发者_如何学编程e what causes it. The app prompts me to check my internet connection even though all other apps / browsers are working fine.

The only solution is to do a manual hard restart after installation. This solved the problem and the app runs seamlessly 100% of the time.

Is there a way to prompt the user to restart the phone after initial installation has been completed? Ex. Like some RIM products, after you've installed it prompts you to restart now or later, if you select yes it does a complete / hard restart.


AFAIK when a BlackBerry application is set "Run on startup" it runs automatically as it is installed.

And you may use requestPowerOff method of Device class to turn the device off and automatically turn it on (this is controlled by the method parameter).

0

精彩评论

暂无评论...
验证码 换一张
取 消