1. Download our Official Android App: Forums for Android!

Apps refresh application icon in a Service

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

  1. usml

    usml Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    38
    Joined:
    Dec 28, 2009

    Dec 28, 2009
    38
    0
    15
    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
    Rank:
    None
    Points:
    46
    Posts:
    103
    Joined:
    Nov 15, 2009

    Nov 15, 2009
    103
    3
    46
    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...