开发者

How to reboot android device?

I am facing a problem. I just want to reboot the device just after the installation package ha开发者_JS百科s installed on the device. How can i do this? Is there any way to do this?

please help me.

BR, gsmaker


Please don't do this. I don't know if it's possible, but if you did this to my phone without asking and providing a way to cancel, I would instantly uninstall your app.

In my opinion, from a user friendliness perspective the best way to do this is to simply ask them to restart their device at a time convenient to them before using your app


It can't be done. Your application code cannot run directly after installation.

It will only run if the user selects your launcher item, or reboots the device (and you have a boot completion handler).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜