1

Possible Duplicate:
How can an Android application have more than one process?

It's painful for me to get the answer. Is it possible to have more than one processes in one Android application? Anyone could help me? Would you please give me an example? How could we implemente two processes in one Android application?

Thank you very much.

Community
  • 1
  • 1
  • 2
    You are talking about threads? [painless threading](http://developer.android.com/resources/articles/painless-threading.html) – Bojan Kogoj Jul 07 '11 at 11:59
  • http://stackoverflow.com/questions/6567768/how-can-an-android-application-have-more-than-one-process and http://stackoverflow.com/questions/6468126/every-activity-in-android-is-a-process-or-one-application-is-one-process – Ishtar Jul 07 '11 at 12:48
  • It's not about thread. But the links you gave to me is pretty good. Thanks a lot. – LoveScorpio Jul 08 '11 at 00:55

1 Answers1

1

Yes, it is possible. For example look at the SERVICE class.

android:process = "String" The name of the process where the service is to run. 

This starts the service in separate process

Plamen Nikolov
  • 4,177
  • 3
  • 23
  • 24
  • Yes, it's right. I also got it from google android website. And this is not about threads. But I don't know the advantage of such a method compared with multithread... – LoveScorpio Jul 08 '11 at 00:31