Android Question Remove icon from status bar

Discussion in 'Android Questions' started by imgsimonebiliato, Jul 9, 2015.

  1. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    Hello,
    I created a service that always runs.
    How can I remove the icon of the application, from the status bar?
    Look attacched the first 2 icons
     

    Attached Files:

  2. fixit30

    fixit30 Active Member Licensed User

    You cannot remove the icon for a Foreground service.
     
    imgsimonebiliato likes this.
  3. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

  4. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    If anyone removed the icon, please let me know
     
  5. peacemaker

    peacemaker Well-Known Member Licensed User

    Just set icon = ""
     
  6. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    No... It isn't possible because I've got this log error:


    Code:
    android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: icon must be non-zero
     
  7. peacemaker

    peacemaker Well-Known Member Licensed User

    No, not at start, later.
     
  8. imgsimonebiliato

    imgsimonebiliato Well-Known Member Licensed User

    I don't understand what do you mean
     
Loading...