Java tutorial
//package com.java2s; import android.content.Context; import android.os.PowerManager; import android.util.Log; public class Main { private final static String TAG = "Upgrade.RebootUtils"; public static void rebootRecovery(Context context) { Log.w(TAG, "!!! REBOOT RECOVERY !!!"); PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); pm.reboot("recovery"); } }