How to run a servie and send a broadcast to a Activity when it is finished?
<p>I have a service that i retrieve 7 URL's.</p>

<p>Oncei retrieve the URLs from the service, i want to send a broadcast with the URL stored as an extra. i want to   send a broadcast when the images are finished downloading to the main activity to refresh my BaseAdapter. My Service will be the one to send the broadcasts and my  Activity will be the one with the receiver.</p>

<p>The problem is i am downloading the Strings from a server. The MainActivity needs these before it starts.</p>

<p>What could i do to by time while the service downloads the Strings?</p>

<p>Also i thought about running tha downloading of the Strings in my main activity in an asynctask but  i only want the Strings to be checked and downloaded once a week.</p>

<p>Is my solution the best? Could some one give me an example of how i would implement this. I am familiar with broadcast recievers. just dont know how i would use it for this particular project.</p>
