Over a million developers have joined DZone.

Programmatically restarting a device

· Mobile Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

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. :( 

The Mobile Zone is brought to you in partnership with Strongloop and IBM.  Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud.


Published at DZone with permission of Matt Lacey, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}