commit | 694f2b847232c66c64a42aa1002c8e5b652342e0 | [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 | a5fe348024d96a57c2a35a546ab84c8e1c8dd693 | |
parent | fd9a2dafdc6516a62bdf13c81ec2ac579a8fd998 [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