On Thu, Nov 11, 2010 at 8:07 AM, xi developer <[email protected]> wrote: > How to implement the "broadcast from service to activity"? It is too > abstract concept for me, is there any tutorial or sample code?
https://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ This approach has its downsides. Notably, it is a true broadcast, meaning any application on the device can listen for it. Android 2.2 introduces a setPackage() option on the Intent you can use to deal with this, but that is only for Android 2.2 and newer versions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

