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 requests made by the modules, and return the result to the respective module (referred as "action method"). I will have many more such activities (UI pages) that would use the Service to obtain the data. That is why I chose not to fetch the data in background process of Activity.
This is what I have tried : I am not using Intents and Broadcast receivers. I have created two AsyncTasks, one per each module, to invoke "action method" from the Service. I just need make sure that the "action method" is re-entrant and thread safe. Hopefully this is correct way of doing things in Android. Thanks, Babasaheb On 19 Feb, 18:53, TreKing <[email protected]> wrote: > On Fri, Feb 19, 2010 at 5:22 AM, Babasaheb <[email protected]> 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 getting the result back > in an Activity, why not just do the work in a background thread (or > AyncTask) in the Activity itself? > > Answer Mark's questions (especially how you define "module") and post more > code / information. > > --------------------------------------------------------------------------- > ---------------------- > 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

