A talk on how to do stuff in Background in Android, for IIT Kharagpur students.
Code used, can be found here on github: https://github.com/Sheikh-Aman/Teach/tree/master/BackgroundDemo
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
Android : Background Processing
1. Android : Doing things in Background
Who am I ?
Aman Alam
Co-Founder,
Happily Coded Mobile Solutions,
Assistant Organizer, BlrDroid
Bangalore, IN
Happilycoded.com
@amanalam
5. What to use, and when
- Java Threads : Avoid
- Handlers : very small tasks
- AsyncTask : Simple tasks related to current activity
only
- Service : Somewhat heavy, independence needed
- IntentService : Easy handling of multiple requests
One shot to kill all doesn't work
5
7. Further Reading
- Bound Services :
http://developer.android.com/guide/components/bound-services.html
- Keeping the app responsive :
http://developer.android.com/training/articles/perf-anr.html
- Working with IntentServices :
http://developer.android.com/training/run-background-service/create-service.html
- Dealing with normal Thread :
http://stackoverflow.com/a/6463591/243709
7
9. That's All Folks!
Thank You!
Aman Alam
Contact:
Co-Founder,
aman@blrdroid.org
Happily Coded Mobile Solutions,
@amanalam
Bangalore, IN
gplus.to/SheikhAman
Happilycoded.com
www.sheikhaman.com
@amanalam