1. Are you ready for the Galaxy S20? Here is everything we know so far!

refresh application icon in a Service

Discussion in 'Android Development' started by usml, Dec 28, 2009.

  1. usml

    usml Newbie
    Thread Starter

    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.
     


  2. KeithG

    KeithG Well-Known Member

    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
     
Loading...
Similar Threads - refresh application icon
  1. UndefinedN00B
    Replies:
    0
    Views:
    93
  2. MoodyBlues
    Replies:
    20
    Views:
    1,383
  3. jack63ss
    Replies:
    3
    Views:
    441
  4. Avalon11
    Replies:
    2
    Views:
    3,486
  5. MoodyBlues
    Replies:
    3
    Views:
    1,636
  6. Patrick Stooker
    Replies:
    3
    Views:
    270
  7. darth_daniel
    Replies:
    9
    Views:
    1,183
  8. Kadire
    Replies:
    1
    Views:
    470
  9. W999x
    Replies:
    0
    Views:
    375
  10. scoobybash
    Replies:
    0
    Views:
    2,430

Share This Page

Loading...