It is necessary somehow in the android application to make sure that when you call void, the phone turns off (completely, not the screen). How to do it? Tell me please)
Firstly, the device must be rooted, and the command:
void shotdown() throws IOException { Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot -p"}); }
Source: https://ru.stackoverflow.com/questions/750840/More articles:Youtube api in ViewPagerWhy does not the jar file start? Trying to open fileChoosing a controller for IOS tabsCopy link to memory from dataGridViewHow to edit theme styles in CMS PrestaShop 1.7?Redefinition of a method with an arbitrary number of parametersThe problem with adding a new tab in HTMLDictionary Is it thread safe to read?How to configure VPN correctlySQL-server agent jobsAll Articles