Here you can find the source of rebootRecovery(Context context)
public static void rebootRecovery(Context context)
//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"); }//w w w. j a va 2 s . c om }