Over a million developers have joined DZone.

Programmatically restarting a device

DZone 's Guide to

Programmatically restarting a device

· Mobile Zone ·
Free Resource

If you follow me on twitter, you may have seen me discussing a bug in the SDK which causes devices to reboot.

This wasn't as a result of doing anything untoward or deliberately malicious. This was just as a result of passing what should be valid data to a method in the API. I wasn't looking for any particular issue, I was just testing some functionality as part of an application.

Being the responsible adult that I am I reported it to the Windows Phone team. They confirmed it as a bug and have raised it in their bug tracking database.
This hasn't been fixed in GDR2 but will hopefully be fixed in a future update.

Some people on Twitter suggested that I include it in an app as a feature. So I did just that.
I created a simple app that allows the restarting of the phone after a short, animated countdown.
A small beta with a few dozen volunteers confirmed that it worked across a wide variety of devices.
Unfortunately the certification team weren't happy with such an app being in store and so rejected it. 

I don't think that it breached any of the store requirements but I don't expect I'd get anywhere debating it. Sorry, no restart app coming soon.

Many people have asked about how to do this.
Sorry though, I don't see any value in sharing the specifics. It's not like it can be used in an app. :( 


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}