I have a service that is retrieving URL’s from a remote server for a MainActivity that i launch at the beginning of the project.
The problem is, i need these URL’s before the Activity its ran.
The service is launched when the activity is started for the first time.
I put the URL’s in the sharedpreference once they are retrieved.
But by the time this happens the activity has already loaded the default images.
I am using an Adapter to LazyLoad the images.
How can i notify the activity to refresh it self or refresh the BaseAdapter i am using to download the images once the service is finished?
Any better idea’s are welcomed!
If you need to update the
Activityfrom theService, you should look into BroadcastReceivers.A googled tutorial can be found here.