Hello everyone, I am facing a problem. I just want to reboot the device just after the installation package has installed on the device. How can i do this? Is there any way to do this?
please help me.
BR, gsmaker
Hello everyone, I am facing a problem. I just want to reboot the device just after the installation package has 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).