Is there a way to disable android device programmaticaly?
<p>I have an android tablet installed on a robot, which has separate accumulator, and i need to power off tablet when that accumulator is discharged.
Is there any way to do it from android application?
I can root the device if needed.</p>

<p>UPD - tablet - Acer Iconia A100, ICS.</p>

<p>UPD2</p>

<p>here is working code</p>

<pre><code>try {
            Process process = new ProcessBuilder()
               .command("/system/bin/su")
               .start();
                OutputStream o =process.getOutputStream();
                o.write("/system/bin/reboot -p\n".getBytes());

        } catch (Exception e) {
            Toast.makeText(getApplicationContext(), "fail!", Toast.LENGTH_LONG).show();
        } 
</code></pre>
