Android requesting superuser command gingerbread 2.3
<p>So I am making an app that request superuser permission and then on a button click will reboot the phone. This command below works fine in <strong>[a modified version of]</strong> android 2.2 api level 8 but when trying to use <strong>[a modified version of]</strong> gingerbread 2.3 api level 9 or 10 it will not open superuser pop up and will not reboot phone any reason why? Here is the code I have been using with 2.2</p>

<pre><code>        public void onClick(View v) {
  switch (v.getId()) {
  case R.id.reboot_button:
      try {
        Runtime.getRuntime().exec(new String[]{"/system/bin/su","-c","reboot now"});
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }  
</code></pre>
