title: How to Shutdown android device in C# Xamarin
body: <p>I have tried shutdown with this</p>
  
  <pre><code>Java.Lang.Runtime.GetRuntime().Exec(new String[] { "/system/xbin/su", "-c", "shutdown" });
  </code></pre>
  
  <p>and this </p>
  
  <pre><code>Intent i = new Intent("android.intent.action.ACTION_REQUEST_SHUTDOWN");
  i.PutExtra("android.intent.extra.KEY_CONFIRM", true);
  StartActivity(i);
  </code></pre>