Add handling of tasks being removed.
Change-Id: I6141f17310e61dc6b86052ca81a17a51cc6a2193
This commit is contained in:
@@ -135,8 +135,13 @@ public class RemoteService extends Service {
|
||||
};
|
||||
// END_INCLUDE(exposing_a_service)
|
||||
|
||||
private static final int REPORT_MSG = 1;
|
||||
@Override
|
||||
public void onTaskRemoved(Intent rootIntent) {
|
||||
Toast.makeText(this, "Task removed: " + rootIntent, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
private static final int REPORT_MSG = 1;
|
||||
|
||||
/**
|
||||
* Our Handler used to execute operations on the main thread. This is used
|
||||
* to schedule increments of our value.
|
||||
|
||||
Reference in New Issue
Block a user