summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/11
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2017-03-21 11:37:06 -0700
committerChristopher Tate <ctate@google.com>2017-03-29 13:12:09 -0700
commit79047c62b58fb0a0ddf28e2b90fe4d17e05bc528 (patch)
tree6516db4d9a69d92856bb63ab72add421c78e7569 /docs/html/sdk/api_diff/11
parent3473647f7dea44ebf82e93f71581418497e77656 (diff)
API refactor: context.startForegroundService()
Rather than require an a-priori Notification be supplied in order to start a service directly into the foreground state, we adopt a two-stage compound operation for undertaking ongoing service work even from a background execution state. Context#startForegroundService() is not subject to background restrictions, with the requirement that the service formally enter the foreground state via startForeground() within 5 seconds. If the service does not do so, it is stopped by the OS and the app is blamed with a service ANR. We also introduce a new flavor of PendingIntent that starts a service into this two-stage "promises to call startForeground()" sequence, so that deferred and second-party launches can take advantage of it. Bug 36130212 Test: CTS Change-Id: I96d6b23fcfc27d8fa606827b7d48a093611b2345
Diffstat (limited to 'docs/html/sdk/api_diff/11')
0 files changed, 0 insertions, 0 deletions