I am working with Android Lollypop JobScheduler. Android Studio marks this code:
JobScheduler js = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);
... like a mistake. It compiles fine. The studio, however, thinks that it knows all the legal services and notes this.
I guess this is an "inspection". I was looking for checks for an error message that begins "Must be one of: Context.POWER_SERVICE" and did not find anything.
This leads me to a specific question: "How can I turn off this particular, annoying error." In addition, a more general question: "In general, if the inspection annoys me, how can I find it so that I can turn it off?"
source
share