Better Presentations From a Service

Back in May, I blogged about how to show a Presentation from a Service. In there, I said that the SYSTEM_ALERT_WINDOW permission was required to make all of this work, because we needed a TYPE_SYSTEM_ALERT Window to display content on an external display from the background.

Clearly, somebody had spiked my chocolate milk while I was working on that bit of the code.

Andrew Hughes pointed out to me that removing TYPE_SYSTEM_ALERT and SYSTEM_ALERT_WINDOW from my code worked just fine. I reproduced his findings and updated my PresentationService to match. And it seems to work fine.

My apologies for my mistake, and many thanks to Andrew for his help!

Need an extra hand with your Android app development project? CommonsWare can help — reach out for details!