|
182 | 182 | <!-- Regex of wired ethernet ifaces --> |
183 | 183 | <string translatable="false" name="config_ethernet_iface_regex">eth\\d</string> |
184 | 184 |
|
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. |
| 185 | + <!-- If the mobile hotspot feature requires provisioning, a package name and class name |
| 186 | + can be provided to launch a supported application that provisions the devices. |
187 | 187 |
|
188 | 188 | Example Usage: |
189 | 189 |
|
190 | | - Intent intent = new Intent(R.string.config_mobile_hotspot_provision_intent); |
| 190 | + String[] appDetails = getStringArray(R.array.config_mobile_hotspot_provision_app); |
| 191 | + Intent intent = new Intent(Intent.ACTION_MAIN); |
| 192 | + intent.setClassName(appDetails[0], appDetails[1]); |
191 | 193 | startActivityForResult(intent, 0); |
192 | 194 |
|
193 | 195 | public void onActivityResult(int requestCode, int resultCode, Intent intent) { |
|
202 | 204 |
|
203 | 205 | See src/com/android/settings/TetherSettings.java for more details. |
204 | 206 | --> |
205 | | - <string translatable="false" name="config_mobile_hotspot_provision_intent"></string> |
| 207 | + <!-- The first element is the package name and the second element is the class name |
| 208 | + of the provisioning app --> |
| 209 | + <string-array translatable="false" name="config_mobile_hotspot_provision_app"> |
| 210 | + <!-- |
| 211 | + <item>com.example.provisioning</item> |
| 212 | + <item>com.example.provisioning.Activity</item> |
| 213 | + --> |
| 214 | + </string-array> |
206 | 215 |
|
207 | 216 | <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering --> |
208 | 217 | <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or |
|
0 commit comments