http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html

And a sample app demonstrating what that blog post discusses can be found here:

https://github.com/commonsguy/cw-advandroid/tree/master/Broadcast/Ordered

On Sun, Jan 15, 2012 at 12:36 PM, Goutom <[email protected]> wrote:
> Hi
>
> In my application when I press a button then it starts downloading  in a
> background service.
> Its a huge file to download. Though I close my application it continues
> downloading in service.
> I want to notify in my activity when download finish. Please note the cases:
>
> These cases after starting download.
>
> 1. If I close my application it stills downloading and after some time it
> finish.
>     I don't need to notify the activity because the activity in not visible.
>
> 2. If I close my application it stills downloading and after some time I
> starts the activity.
>     But download is not finish.I am in activity and after a while download
> is finish.
>     I need to notify the activity because the activity is visible now.
>
> How implement this feature in android ? Dont forget to share any idea.
>
> Regards
> Goutom
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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

Reply via email to