0

If I have an inner class that extends BroadcastReceiver within my Service class, should I care about synchronization, when the BroadcastReceiver class reads/writes to objects from the Service class? Or to put it in another way: Are BroadcastReceivers onReceive() Methods started in an extra thread?

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

0

No by default all of the components use the same thread/process unless you specifically request the android system to use a separate process using the android:process attribute or create your own threads.

For more information refer to the following tutorial:

http://www.vogella.com/articles/AndroidBackgroundProcessing/article.html#androidbackground_purpose

Also this question is same as yours.

Community
  • 1
  • 1
gst
  • 828
  • 5
  • 15