So I was making a wallpaper picker extension, and I need to get a permission from the user. The permission is:
android.permission.SET_WALLPAPER
How do I do this? Just saying, I was following this post:
So I was making a wallpaper picker extension, and I need to get a permission from the user. The permission is:
android.permission.SET_WALLPAPER
How do I do this? Just saying, I was following this post:
@UsesPermissions(permissionNames = "android.permission.SET_WALLPAPER")
add this line into your code.
Thanks for the quick answer! Stay safe!
are there any imports?
It says cannot find symbol error...
You have to import UsesPermissions from the annotations package. The annotation must be put on the class.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.