Service, Broadcast Receiver Instead of startActivityForResult?
I'm developing a service and I've been following an example that开发者_StackOverflow中文版 unfortunately uses an Activity to get its work done. The example uses startActivityForResult() to get values after doing something. I'm wondering do I just use BroadcastReceiver to accomplish the same thing? sendBroadcast(intent) and then capture the broadcast to do whatever?
Yes, for me is the best solution, but you can bind the service to the activity if you want another solution.
精彩评论