summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-11-01 14:57:32 -0700
committerIrfan Sheriff <isheriff@google.com>2011-11-01 15:48:23 -0700
commit2cef1292c2208be7da781d4f906dc010510e401c (patch)
treee0ecf31ea098f835b3acb7f04476942a1db12912
parent7ec4284ab2026a82e6904a4974db8f947c159960 (diff)
downloadbase-2cef1292c2208be7da781d4f906dc010510e401c.tar.gz
Specify component name for provisioning
Bug: 5544654 Change-Id: I977cad131f7c4d9776997fc3153f4c0d12063af2
-rwxr-xr-xcore/res/res/values/config.xml17
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