[android-developers] Re: Deciding which method to call when intent is received

2010-02-22 Thread Babasaheb
Hi Mark, Hi TreKing, I have one Activity that demonstrates two functionalities: a] table of stocks (portfolio). b] ticker for recommended stocks. These are the two functionalities I am referring as modules, which obtain their data from a Service. The Service fetches data from server as per the req

[android-developers] Re: Deciding which method to call when intent is received

2010-02-22 Thread Babasaheb
Hi Mark, Hi TreKing, I have one Activity that demonstrates two functionalities: a] table of stocks (portfolio). b] ticker for recommended stocks. These are the two functionalities I am referring as modules, which obtain their data from a Service. The Service fetches data from server as per the req

Re: [android-developers] Re: Deciding which method to call when intent is received

2010-02-19 Thread TreKing
On Fri, Feb 19, 2010 at 5:22 AM, Babasaheb wrote: > Is it Possible? How it can be done? Maybe? I'm really confused on what you're doing. It sounds like you want to offload a background process from an Activity to a Service, and then get back a result. But if you're starting this work and gettin

Re: [android-developers] Re: Deciding which method to call when intent is received

2010-02-19 Thread Mark Murphy
Babasaheb wrote: > Let me rephrase the question: I have an activity which has two > modules. What is a "module"? > Both the modules calls same 'action method' from a service. What is an "action method"? > In the 'action method' a thread will be created which starts a > background process. I re

[android-developers] Re: Deciding which method to call when intent is received

2010-02-19 Thread Babasaheb
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 'a

[android-developers] Re: Deciding which method to call when intent is received

2010-02-18 Thread Babasaheb
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 wrote: > On Thu, Feb 18, 2010 at 8:47 AM, Babasaheb wrote: > > Is it possible to send an intent so that a specific action is taken at > > receiver side