Hi,

I went through 'action' portion of Intent documentation. Yes it can be
an option. But it forces me to use broadcast receiver, which I don't
want to do.

Let me rephrase the question: I have an activity which has two
modules. Both the modules calls same 'action method' from a service.
In the 'action method' a thread will be created which starts a
background process. When that process is completed an intent (say
'resultIntent') will be sent. I want that intent to be received by the
specific module that called the 'action method' in the activity. I
want the two modules to have different methods for handling the
'resultIntent'.  I don't want to use a switch case in broadcast
receiver for dispatching the 'resultIntent' to the respective module.
Is it Possible? How it can be done?

Thanks,


On Feb 19, 9:49 am, Babasaheb <[email protected]> wrote:
> Hi TreKing,
>
> Thank you for the prompt reply.. :)
> I will try your solution to see how it solves the problem..
>
> Thanks
>
> On Feb 18, 9:17 pm, TreKing <[email protected]> wrote:
>
>
>
> > On Thu, Feb 18, 2010 at 8:47 AM, Babasaheb <[email protected]> wrote:
> > > Is it possible to send an intent so that a specific action is taken at
> > > receiver side without broadcasting the intent?
> > > Is this correct method?
> > > How can I do that?
> > > Is there any other solution?
>
> > I would recommend you look at the "action" portion of intents in the
> > documentation. You can specify an action for an intent (using a default one
> > or your own) and base what you do on that.
>
> > --------------------------------------------------------------------------- 
> > ----------------------
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://sites.google.com/site/rezmobileapps/treking

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