How to wait for an IntentService to finish its task
问题 I'm using an intent service to communicate with a server to get data for an app. I'd like the app to wait until the data it requests has been sent back (hopefully meaning that the IntentService the data has been requested from has finished running) before the app attempts to access or use the variables the data is to be stored in. How would I go about doing this? thanks! 回答1: Easiest way is to have your IntentService send a Broadcast once it is done gathering data from the server, which you