diff --git a/android/BOINC/AndroidManifest.xml b/android/BOINC/AndroidManifest.xml index d27ecc41eb..02dd38b4f0 100644 --- a/android/BOINC/AndroidManifest.xml +++ b/android/BOINC/AndroidManifest.xml @@ -54,7 +54,7 @@ - + diff --git a/android/BOINC/src/edu/berkeley/boinc/receiver/BootReceiver.java b/android/BOINC/src/edu/berkeley/boinc/receiver/BootReceiver.java index 3b8b4e80af..9e0b7dced9 100644 --- a/android/BOINC/src/edu/berkeley/boinc/receiver/BootReceiver.java +++ b/android/BOINC/src/edu/berkeley/boinc/receiver/BootReceiver.java @@ -33,7 +33,7 @@ import android.util.Log; public class BootReceiver extends BroadcastReceiver { - private final String TAG = "BootReceiver"; + private final String TAG = "BOINC BootReceiver"; private NotificationManager mNM; @Override @@ -41,6 +41,7 @@ public class BootReceiver extends BroadcastReceiver { AppPreferences prefs = new AppPreferences(); prefs.readPrefs(context); + if(prefs.getAutostart()) { Log.d(TAG,"autostart enabled, start Monitor..."); Intent startServiceIntent = new Intent(context, Monitor.class); @@ -60,6 +61,7 @@ public class BootReceiver extends BroadcastReceiver { // do nothing Log.d(TAG,"autostart disabeld"); } + } } diff --git a/android/BOINC/src/edu/berkeley/boinc/receiver/LogReceiver.java b/android/BOINC/src/edu/berkeley/boinc/receiver/LogReceiver.java index 3936f7bdca..12908edd08 100644 --- a/android/BOINC/src/edu/berkeley/boinc/receiver/LogReceiver.java +++ b/android/BOINC/src/edu/berkeley/boinc/receiver/LogReceiver.java @@ -26,7 +26,10 @@ import android.content.Intent; public class LogReceiver extends BroadcastReceiver { + private final String TAG = "BOINC LogReceiver"; + public static ArrayList logHub = new ArrayList(); + @Override public void onReceive(Context context, Intent intent) { String tag = intent.getStringExtra("tag"); @@ -35,8 +38,8 @@ public class LogReceiver extends BroadcastReceiver { } String message = intent.getStringExtra("message"); String entry = tag + " - " + message; - //Log.d("LogReceiver", entry); LogReceiver.logHub.add(entry); - } + //Log.d(TAG, entry); + } }