Hi, I need to create an application which has got a mina controller module and 2-3 sub-modules which should run as seperate threads.
The entire application needs to be run as a background service. The job of main controller module(main controller service) is to start/ stop other sub-modules and sends messages to these sub-modules. These sub-modules also share data among themselves. Note: There is no Activity . the main controller service will start after boot complete. I'm considering two options 1) Run each of these sub-modules as seperate "service" and each will create a new thread for its execution i.e main controller service will call startService() for each of the sub-modules which would inturn create a new thread for its execution. 2) Have a single controller service which creates 2-3 threads which corrsponds to the sub modules. Once main controller service is stopped I want to stop all other sub- modules. I prefer approach 2. In general, is there any design guidelines for building an android application which uses background services. Your comments are welcome Regards, Manoj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

