Android Question Icon Notification Lillipop

Discussion in 'Android Questions' started by fishwolf, Jun 17, 2015.

  1. fishwolf

    fishwolf Active Member Licensed User

    I set the icon notification as from guide:
    Code:
    Icon As String [write only]
    Sets the icon displayed.

    The icon value 
    is the name of the image file without the extension. The name is case sensitive.

    The 
    image file should be manually copied to the following folder: source folder\Objects\res\drawable. After this you have to make the file read only. Otherwise it will be deleted on compilation.

    You can use 
    "icon" to use the application icon (which is also located in this folder):

    n.Icon = 
    "icon"
    I set a png image 32x50, all work fine, the icon is showed correct on toolbar and on notification list,
    but on Lillipop,
    1) The icon on notification list show the icon of application, not icon notification
    2) on notification list in block mode, the icon notification is very small.

    I have tried to set 5 icons on drawable-hdpi, ecc,ecc, but is worse

    What is the correct procedure?

    Thanks
     
    Last edited: Jun 17, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    How did you name the notification icon file?
     
  3. fishwolf

    fishwolf Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload the project (File - Export as zip)?
     
  5. fishwolf

    fishwolf Active Member Licensed User

    here the sample project and some screen shot
    Old.jpg New.jpg
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

    It shows the correct icon on Nexus 5 running Android 5.1:

    [​IMG]

    (Pay attention to the compilation warnings.)
     
  7. fishwolf

    fishwolf Active Member Licensed User

    Yes, the icon un toolbar is correct "temple", but when i drop-down, into notification list show the app icon and not the notification icon,
    With androin 4 show the same icon (notification)

    [​IMG]
     

    Attached Files:

    • New.jpg
      New.jpg
      File size:
      54.2 KB
      Views:
      19
  8. fishwolf

    fishwolf Active Member Licensed User

    on Moto G, the notification icon is very small
    [​IMG]
     

    Attached Files:

  9. Erel

    Erel Administrator Staff Member Licensed User

    It showed the notification icon on the Nexus 5.
     
Loading...