Tuesday, January 10, 2012

Re: [android-developers] intent.putExtra

>>
>> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate