>> >> And from service how to get this object to call the overridden method in >> my activity when task is finished in service? > > > Launch the activity from the service with proper intent (correction action, > data, and extras) and then act on that. > > > I think you need to review the documentation. >
I don't think it's that so much as the fact that it's a fundamentally different programming model. :-) This corresponds to the situation when you pass a reference to a constructor (if you view intents to startActivity or startService as something analogous to a function call), which makes sense in that situation, but Android doesn't work like that. -- 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

