I was wondering how could I detect if my own service is enabled. So I could check if my service is not enabled, then tell the user to enable it.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
Below is the method to check if your accessibility service is enabled or not.
Note: Change value of
YOURAccessibilityService
with your Service.And to call this method:
This will check and launch accessibility settings if not enabled.