commit | c8873fcfe5bfa0440e86248a71033e2b81e159df | [log] [tgz] |
---|---|---|
author | Paul Jensen <pauljensen@google.com> | Wed Jun 17 14:15:39 2015 -0400 |
committer | Paul Jensen <pauljensen@google.com> | Thu Jun 18 20:00:44 2015 -0400 |
tree | 64fa89b52a0fe448d6833bd71e2e2077f040da68 | |
parent | ddb3d3aaccfed319c473d5738a106ee4e0da34e9 [diff] |
Add ConnectivityManager.registerNetworkCallback(NetworkRequest, PendingIntent) Without this API we're more or less encouraging apps to have long running processes (battery draining) to receive NetworkCallbacks for the stateful NetworkCapabilities NET_CAPABILITIES_VALIDATED and NET_CAPABILITIES_CAPTIVE_PORTAL. With this API they can instead using PendingIntents which outlive their apps. Bug: 21343774 Change-Id: I168d0ac3757729acf7ca5546079846f575a0eedd