Android Question About "kiosk":Not allowed to set the device owner

yzhy-mail

Member
I want to test this example in my phone:https://www.b4x.com/android/forum/threads/device-owner-tasklock-kiosk-apps-2017.81765/#content

But get this error,maybe someone can help me!
I don't know if how to remove"Existing user accounts on the device ".
Device is my phone.

koisk:
PS D:\Android\platform-tools> adb shell dpm set-device-owner kiosk1.example/anywheresoftware.b4a.objects.AdminReceiver2
java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…