Forum Discussion
mirkopinna
5 months agoLevel 1.5: Cupcake
QR Code provisioning
Hi, I created an Android application that has to run on a fully managed device. I have to make it the only application installed on a device and running on a Kiosk Mode. I tried provisioning the d...
mirkopinna
5 months agoLevel 1.5: Cupcake
Sorry I noticed there was an error here:
class ProvisioningModeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val resultIntent = Intent()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
resultIntent.putExtra(DevicePolicyManager.EXTRA_PROVISIONING_MODE,
DevicePolicyManager.PROVISIONING_MODE_FULLY_MANAGED_DEVICE)
}
setResult(RESULT_OK, resultIntent) // I wasn't returning the result intent.
finish()
}
}
- josefeliuf4 months agoLevel 1.5: Cupcake
did it work?
Related Content
- 5 months ago
- 12 months ago
- 2 years ago