I am not entirely sure if I understand.. but is it possible when you raise
the alert dialog, it's a different activity and that may be why it seems
it's not working? Maybe you have to do something in the alert dialog... or
maybe it blocks the main activity thread and that is why?

On Wed, Jan 20, 2010 at 2:10 PM, Natalie <natlinn...@gmail.com> wrote:

> Hi everyone,
> I'm hoping to do some audio processing in a remote service (service
> I've spawned onto its own thread); this will basically occur in a while
> (1) loop - so constant processing.  Occasionally I want to provide
> some information back to the activity that is bound to the service;
> I'm doing this by sending a broadcast from the service, that is
> received by a broadcast receiver on the activity, which then uses the
> activity's service connection to call into the service and get the
> information needed; at this point the broadcast receiver makes an
> alert dialog presenting the information to the user.
> If I stay in my while(1) loop after raising the broadcast, the action
> in the broadcast receiver never seems to occur.  This is confusing to
> me since the activity and service are in separate threads.  If I end
> the loop after raising the broadcast, the desired behavior on the
> activity side occurs, but of course this isn't acceptable since I need
> to be doing constant processing.  Anyone have any suggestions of what
> the probelm might be?
> Thanks!
> Natalie
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
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

Reply via email to