M marcomilazzo Member Licensed User Longtime User Feb 16, 2012 #1 Hi I need to shutdown the phone . is there a command to do it? or how do i call an external app from my code that will shutdown the phone? any example ? thank's a lot marco
Hi I need to shutdown the phone . is there a command to do it? or how do i call an external app from my code that will shutdown the phone? any example ? thank's a lot marco
joseluis Active Member Licensed User Longtime User Feb 16, 2012 #2 It seems there's no public API for powering off the phone. The closest would be to use the OS library, which has the reboot method, and the goToSleep method. Upvote 0
It seems there's no public API for powering off the phone. The closest would be to use the OS library, which has the reboot method, and the goToSleep method.
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2012 #3 Only system applications can shutdown the device. I don't think that there is an external app that will allow you to do it. Upvote 0
Only system applications can shutdown the device. I don't think that there is an external app that will allow you to do it.
M marcomilazzo Member Licensed User Longtime User Feb 16, 2012 #4 How can i call on application within my code ? ad example i have an app "shutdown" that close the phone How can i call and run this app? ciao e grazie Upvote 0
How can i call on application within my code ? ad example i have an app "shutdown" that close the phone How can i call and run this app? ciao e grazie
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2012 #5 You will need to find the intent that starts this application. You can find it with PackageManager.GetApplicationIntent: Basic4android - Phone Upvote 0
You will need to find the intent that starts this application. You can find it with PackageManager.GetApplicationIntent: Basic4android - Phone