Code example for Context

Methods: unregisterReceiver

        public void onReceive(Context context, Intent intent) {
        public void onDismiss(DialogInterface unused) {
     * Request a clean shutdown, waiting for subsystems to clean up their 
     * state etc.  Must be called from a Looper thread in which its UI 
     * is shown. 
     * @param context Context used to display the shutdown progress dialog. 
     * @param reason code to pass to the kernel (e.g. "recovery"), or null. 
     * @param confirm true if user confirmation is needed before shutting down. 
    public static void reboot(final Context context, String reason, boolean confirm) {
        mReboot = true;
Stop searching for code, let great code find you!  Add Codota to your java IDE