I have a service which I believe to have running in the foreground, How do I check if my implementation is working?
相关问题
- 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?
If you want to know if your service is running in foreground just open some others fat applications and then check if service is still running or just check flag
service.foreground
.A more efficient variation of answer: https://stackoverflow.com/a/36127260/1275265