OSDN Git Service

Adds missing Bluetooth as network type.
authorHåkan3 Johansson <hakan3.johansson@sonyericsson.com>
Wed, 8 Feb 2012 20:13:35 +0000 (21:13 +0100)
committerHenrik Baard <henrik.baard@sonymobile.com>
Tue, 10 Jul 2012 13:03:54 +0000 (15:03 +0200)
The network connection type for Bluetooth is added so
that it is possible to use Bluetooth as Hotspot during
download from the Internet.

Change-Id: If8e8a3f69821beef742bc91d7a292a091861b48b

core/java/android/app/DownloadManager.java

index 17700f9..0b1c524 100644 (file)
@@ -344,6 +344,13 @@ public class DownloadManager {
          */
         public static final int NETWORK_WIFI = 1 << 1;
 
+        /**
+         * Bit flag for {@link #setAllowedNetworkTypes} corresponding to
+         * {@link ConnectivityManager#TYPE_BLUETOOTH}.
+         * @hide
+         */
+        public static final int NETWORK_BLUETOOTH = 1 << 2;
+
         private Uri mUri;
         private Uri mDestinationUri;
         private List<Pair<String, String>> mRequestHeaders = new ArrayList<Pair<String, String>>();