summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/google/android/traceur/TraceService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/google/android/traceur/TraceService.java b/src/com/google/android/traceur/TraceService.java
index 0c968ea..a028645 100644
--- a/src/com/google/android/traceur/TraceService.java
+++ b/src/com/google/android/traceur/TraceService.java
@@ -60,13 +60,13 @@ public class TraceService extends IntentService {
intent.putExtra(INTENT_EXTRA_LONG_TRACE, longTrace);
intent.putExtra(INTENT_EXTRA_LONG_TRACE_SIZE, maxLongTraceSizeMb);
intent.putExtra(INTENT_EXTRA_LONG_TRACE_DURATION, maxLongTraceDurationMinutes);
- context.startService(intent);
+ context.startForegroundService(intent);
}
public static void stopTracing(final Context context) {
Intent intent = new Intent(context, TraceService.class);
intent.setAction(INTENT_ACTION_STOP_TRACING);
- context.startService(intent);
+ context.startForegroundService(intent);
}
public TraceService() {