Skip to content

Commit 3013134

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Mobile hotspot provision string"
2 parents 4954213 + 72b54db commit 3013134

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

core/res/res/values/config.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,28 @@
182182
<!-- Regex of wired ethernet ifaces -->
183183
<string translatable="false" name="config_ethernet_iface_regex">eth\\d</string>
184184

185+
<!-- If the mobile hotspot feature requires provisioning, an intent string can be provided
186+
to the launch a supported application that provisions the devices.
187+
188+
Example Usage:
189+
190+
Intent intent = new Intent(R.string.config_mobile_hotspot_provision_intent);
191+
startActivityForResult(intent, 0);
192+
193+
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
194+
super.onActivityResult(requestCode, resultCode, intent);
195+
if (requestCode == 0) {
196+
if (resultCode == Activity.RESULT_OK) {
197+
//Mobile hotspot provisioning successful
198+
} else {
199+
//Mobile hotspot provisioning failed
200+
}
201+
}
202+
203+
See src/com/android/settings/TetherSettings.java for more details.
204+
-->
205+
<string translatable="false" name="config_mobile_hotspot_provision_intent"></string>
206+
185207
<!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
186208
<!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
187209
<!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->

0 commit comments

Comments
 (0)