summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-06-15 11:18:46 -0700
committerJeff Sharkey <jsharkey@android.com>2011-06-17 16:34:50 -0700
commit961024389b3782936a40a7d090d670290bb66c3c (patch)
tree7188814c93d784118a5efea428eb203418f88575 /res
parent1fec3e68161dce11cc6995c8c3de50d6ca37f2e7 (diff)
downloadandroid_packages_providers_DownloadProvider-961024389b3782936a40a7d090d670290bb66c3c.tar.gz
android_packages_providers_DownloadProvider-961024389b3782936a40a7d090d670290bb66c3c.tar.bz2
android_packages_providers_DownloadProvider-961024389b3782936a40a7d090d670290bb66c3c.zip
Teach DownloadManager about network policy.
Now network access is determined by using getActiveNetworkInfoForUid() which uses BLOCKED to indicate that network should be rejected for the requesting UID. While download in progress, watch for any policy changes that should trigger pause. Also check NetworkInfo.isConnected() for correctness. Change-Id: I1efa79823f15ecc3fa088a6719da1b770c64b255
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9f410896..270a54ce 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -156,6 +156,10 @@
[CHAR LIMIT=24] -->
<string name="notification_need_wifi_for_size">Download size requires Wi-Fi</string>
+ <!-- Notification shown when a download has been paused because a user policy
+ has blocked network access to applications running in background. [CHAR LIMIT=24] -->
+ <string name="notification_paused_in_background">Paused in background</string>
+
<!-- Title for dialog when a download exceeds the carrier-specified maximum size of downloads
over the mobile network and Wi-Fi is required. The user has the choice to either queue the
download to start next time Wi-Fi is available or cancel the download altogether. [CHAR