Android – Services and concurrency PART 3

Android – Services and concurrency PART 3

You can also read Part 1 and Part 2. Started services by default does not create its own thread or run in a separate process, it runs on the main thread of the application. There are two ways to make a service concurrent. by adding in AndroidManifest.xml as service property android:process=”ProcessNamE” This way a different processed is used, and it is not recommended because it can use a lot of system resources. by using IntentService instead of Service that automates and simplifies the programming of concurrent started services. IntentService extends…

Android – Services and concurrency PART 3 Read More