Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; public class Main { public static void reboot(Context context) { Intent intent = new Intent(Intent.ACTION_REBOOT); intent.putExtra("nowait", 1); intent.putExtra("interval", 1); intent.putExtra("window", 0); context.sendBroadcast(intent); } }