Android System Reboot rebootRecovery(Context context)

Here you can find the source of rebootRecovery(Context context)

Description

reboot Recovery

Declaration

public static void rebootRecovery(Context context) 

Method Source Code

//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
}

Related

  1. rebootSystemNow()
  2. rebootInstallPackage(final Context context, final File packageFile)
  3. rebootNormal(Context context)
  4. rebootWipeUserData(final Context context)