package biz.playr;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootUpReceiver extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
        if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
			Intent i = new Intent(context, MainActivity.class);  
			i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(i);
        }
	}

}
@@ -174,16 +174,314 @@
 ceiver%7B%0A
+%09/* this class is used to force a restart of the MainActivity after the device is rebooted%0A%09 * for instance when Android has updated%0A%09 * see the %3Creceiver%3E section of the AndroidManifest file%0A%09 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)%0A%09 */
 %0A%09@Overr
@@ -540,25 +540,24 @@
 ntent) %7B
-%0A
         
 if (Inte
@@ -548,16 +548,19 @@
         
+%0A%09%09
 if (Inte
@@ -617,24 +617,131 @@
 )) %7B%0A%09%09%09
+/*%0A%09%09%09 * The Intent is kept in synch with the Manifest and DefaultExceptionhandler %0A%09%09%09 */%0A%09%09%09Intent activity
 Intent
- i
  = new I
@@ -781,17 +781,30 @@
 );  %0A%09%09%09
-i
+activityIntent
 .addFlag
@@ -830,16 +830,199 @@
 ITY_
-NEW_TASK
+CLEAR_TOP%0A%09%09%09%09%09%7C Intent.FLAG_ACTIVITY_CLEAR_TASK%0A%09%09%09%09%09%7C Intent.FLAG_ACTIVITY_NEW_TASK);%0A%09%09%09activityIntent.setAction(Intent.ACTION_MAIN);%0A%09%09%09activityIntent.addCategory(Intent.CATEGORY_LAUNCHER
 );%0A%09
@@ -1049,23 +1049,29 @@
 ity(
-i);%0A        
+activityIntent);%0A%09%09
 %7D%0A%09%7D%0A
-%0A
 %7D

make fucntionality in synch with the Manifest and DefaultExceptionhandler