diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-11-01 21:15:26 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-01 21:15:26 -0700 |
commit | 953005e8243e4dc898a00d9a1612ae82772913b9 (patch) | |
tree | 2b495ae3b26a07ea6597a37a2ba91a5c6c5502d1 | |
parent | db0ab2e731d755f64583c5704fa406bc0e7a2af4 (diff) | |
parent | 2cef1292c2208be7da781d4f906dc010510e401c (diff) | |
download | base-953005e8243e4dc898a00d9a1612ae82772913b9.tar.gz |
Merge "Specify component name for provisioning" into ics-mr0
-rwxr-xr-x | core/res/res/values/config.xml | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index bde2c72f2351..48e8f1eb70eb 100755 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -182,12 +182,14 @@ <!-- Regex of wired ethernet ifaces --> <string translatable="false" name="config_ethernet_iface_regex">eth\\d</string> - <!-- If the mobile hotspot feature requires provisioning, an intent string can be provided - to the launch a supported application that provisions the devices. + <!-- If the mobile hotspot feature requires provisioning, a package name and class name + can be provided to launch a supported application that provisions the devices. Example Usage: - Intent intent = new Intent(R.string.config_mobile_hotspot_provision_intent); + String[] appDetails = getStringArray(R.array.config_mobile_hotspot_provision_app); + Intent intent = new Intent(Intent.ACTION_MAIN); + intent.setClassName(appDetails[0], appDetails[1]); startActivityForResult(intent, 0); public void onActivityResult(int requestCode, int resultCode, Intent intent) { @@ -202,7 +204,14 @@ See src/com/android/settings/TetherSettings.java for more details. --> - <string translatable="false" name="config_mobile_hotspot_provision_intent"></string> + <!-- The first element is the package name and the second element is the class name + of the provisioning app --> + <string-array translatable="false" name="config_mobile_hotspot_provision_app"> + <!-- + <item>com.example.provisioning</item> + <item>com.example.provisioning.Activity</item> + --> + </string-array> <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering --> <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or |