07.4 Services
07.4 Services
07.4 Services
Background
Tasks
Lesson 7
● Network transactions.
● Play music.
● Perform file I/O.
● Interact with a database.
@Override
protected void onHandleIntent(Intent intent) {
try {
// Do some work
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
} // When this method returns, IntentService stops the service, as
appropriate.
}
● Services overview
● Background Execution Limits