I'm writing an app which needs to know whether the app that the user sees is fullscreen or not. I need to use a service for this application. If the view is fullscreen it suppose to show a view, and hide it when it's not fullscreen. I'm using a WindowManager which includes the view.
What code should I use to determine whether some app is using full screen?
Should I put this code in the onCreate() method?
The answers for this thread does not work as I'm using a Service and getWindow() cannot resolve in a Service.
I'm pretty new to Android and the answers that I found about this subject were not very useful, so I'm asking a new question. I will appreciate explanations, the more information the better.
Thank you for your help!