1. Android Central Question's Avatar
    I am trying to open an activity from a class that extends Service. I am performing this task when the app is not in foreground/not being used. I can see in the logs that my service class triggered start activity with Intent.FLAG_ACTIVITY_NEW_TASK flag. But the activity does not open. But when if the service triggers the same activity when the app is in foreground/being used, the activity opens.

    After few searches I found out that I need to manually give the permission "display popup windows while running in the background android" in the other permissions section in the app settings.

    The display over other apps permission SYSTEM_ALERT_WINDOW only gives access to "Display popup window".

    How do I check or ask the user to give "Display popup windows while running in the background" permission? or Is this permission restricted?
    01-08-2020 07:58 AM
  2. mustang7757's Avatar
    Which andriod device?

    I'll leave a link to register so you can communicate here, as a guest account u cant .https://forums.androidcentral.com/sh...d.php?t=409154
    01-08-2020 09:25 AM
  3. B. Diddy's Avatar
    I moved this to the Software Development forum for more specific traffic.
    01-08-2020 11:35 AM

Similar Threads

  1. Replies: 4
    Last Post: 01-08-2020, 11:38 AM
  2. I cant press the button that activates the "ok Google" option
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 01-08-2020, 11:37 AM
  3. What is the name of the " symbol?
    By Android Central Question in forum Ask a Question
    Replies: 4
    Last Post: 01-08-2020, 11:36 AM
  4. Nvidia shield android TV kodi 18.5 audio output device setting is greyed out
    By lartomar2002 in forum NVIDIA Shield Android TV
    Replies: 1
    Last Post: 01-08-2020, 01:17 AM