what's going on while the mp3 is being downloaded? is the user
waiting for it, with a progress bar? is the user to be presented with
the media player when the download completes, regardless of what else
they might be doing?
as always i would recommend AsyncTask for doing this stuff, it has
nice hooks for doing things in the appropriate threads at the
appropriate time.
hth
Why don't you simply use thread join wait and notify? Curious...
On Jan 13, 8:21 pm, rastyrori <rastyr...@gmail.com> wrote:
I've got an activity that calls a helper class called DownloadManager.
DownloadManager spawns a thread that downloads a mp3 to the sdcard.
I'm having some trouble finding the best design for resuming the
initial activity and starting the MediaPlayer. Does it make the most
sense to use a BroadcastReceiver that receives a message that download
is complete, then start a new Intent of my activity? Think I saw
something that I can't use an Intent to start an Activity from
BroadcastReceiver because it is a background process. Any ideas how to
solve this would be very much appreciated.
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
jason.vp.engineering.particle
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en