commit | 05d297331aeb095508f70757917b158eac02ab3c | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Dec 14 21:56:15 2010 -0800 |
committer | Dianne Hackborn <hackbod@google.com> | Tue Dec 14 21:56:15 2010 -0800 |
tree | 351b722847e30b0a8944b854e249ed34132f0ebc | |
parent | 892dcfe10be059066d80aab66d6da74496f481cb [diff] |
Quickly hack out setForeground call that is going away. I'll come back in a bit and make this API demo work again. Change-Id: I287dd64925e48bc934c44fb6d0b779a58a270503
diff --git a/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java b/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java index 7e061ed..f1513ac 100644 --- a/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java +++ b/samples/ApiDemos/src/com/example/android/apis/app/ForegroundService.java
@@ -82,7 +82,7 @@ } // Fall back on the old API. - setForeground(true); + //setForeground(true); mNM.notify(id, notification); } @@ -109,7 +109,7 @@ // Fall back on the old API. Note to cancel BEFORE changing the // foreground state, since we could be killed at that point. mNM.cancel(id); - setForeground(false); + //setForeground(false); } @Override