title: How can I reboot Android Emulator using monkeyrunner?
body: <p>What is wrong with this script? </p>
  
  <pre># Imports the monkeyrunner modules used by this program </pre>
  
  <pre> from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
  </pre> 
  
  <pre># Connects to the current device, returning a MonkeyDevice object </pre>
  
  <pre>device = MonkeyRunner.waitForConnection() </pre>
  
  <pre>#Reboot </pre>
  
  <pre>device.reboot('None')</pre>
  
  <p>I also tried changing the bootloadType. Insted of the last line I tried with, device.reboot('bootloader') and device.reboot('recovery'), but it didn't work either. </p>