That should be fine. In addition to the links I supplied you on an
earlier thread, here is a sample project with a custom action:

http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

On Tue, Sep 14, 2010 at 7:18 PM, Bret Foreman <bret.fore...@gmail.com> wrote:
> My IntentService is happily chugging away and sends a broadcast of
> results when it's done:
>
>                                intent.setAction("mySpecialName");
>                                sendBroadcast(intent);
>
> Meanwhile, my main thread has a receiver defined like this:
>
>                       registerReceiver( myReceiver = new
> BroadcastReceiver() {
>                       �...@override
>                        public void onReceive(Context arg0, Intent theIntent ) 
> {
>                                // process the received data
>                        } }
>                        , new IntentFilter("mySpecialName") );
>
> But the onReceive method is not getting the message. I'm guessing I
> need to do something with "mySpecialName" in the manifest or some
> such. Any pointers?
>
> --
> 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
>



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

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