Android Service基础
Service作为四大组件之一,有着不可替代的地位。
1> Service的基本使用
2> Service其实是运行在主线程里的,因此当涉及耗时操作时,应该创建子线程来进行后台任务(IBinder,IntentService)。
3> 当系统内存不足时,有可能将Service销毁。因此Android提供了前台服务机制避免该问题。
4> 远程服务
转载郭大神的两篇对于Service的详解:
http://blog.csdn.net/guolin_blog/article/details/11952435/
http://blog.csdn.net/guolin_blog/article/details/9797169