Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setLockTaskPackages commented out? #3

Open
fernandospr opened this issue Dec 12, 2018 · 1 comment
Open

setLockTaskPackages commented out? #3

fernandospr opened this issue Dec 12, 2018 · 1 comment

Comments

@fernandospr
Copy link

Is it correct to comment this line?

https://github.com/wenchaojiang/AndroidKioskModeTemplate/blob/master/app/src/main/java/wenchao/kiosk/KioskActivity.java#L50

@fernandospr fernandospr changed the title setLockTaskPackages commented out? setLockTaskPackages commented out? Dec 12, 2018
@fernandospr fernandospr changed the title setLockTaskPackages commented out? setLockTaskPackages commented out? Dec 12, 2018
@io7m
Copy link

io7m commented Sep 24, 2019

As someone who's just had to plow through this: setLockTaskPackages no longer works as of Lollipop. You'll get an error complaining that the app is "not the owner of the profile". In order to make that call, you either have to make the app a device owner or a profile owner. You need to go through profile provisioning: https://developer.android.com/work/managed-profiles.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants