refresh application icon in a Service


Last Updated:

  1. usml

    usml Active Member This Topic's Starter

    Joined:
    Dec 28, 2009
    Messages:
    38
    Likes Received:
    0
    Is it possible to change the application icon, for instance let it show current time (updated from a Service)? I guess the answer is no, just hoping...

    Separately, is it possible to start a service automatically when the phone is powered up? (guess it's also a "no")

    thanks.
     

    Advertisement
  2. KeithG

    KeithG Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    103
    Likes Received:
    3
    I can't answer to the first question. But the second .. you extend a broadcast receiver class which starts the service. Within the android manifest your intent filter associates the BOOT_COMPLETED broadcast with your receiver. You will need the RECEIVE_BOOT_COMPLETED permission for your class to register to this broad cast.

    blog post showing how to implement this
     

Share This Page

Loading...