摘要: 把Service等同于thread或process是一个非常常见的误解。需要强调又强调的第一点是,Android的Service是一个Context,并不必然等于一个额外的thread。如果你有仔细看文档(Service | Android Developers),里面专门强调A Service is not a separate process. The Service object itself does not imply it is running in its own process; unless otherwise specified, it runs in the same.. 阅读全文
posted @ 2013-12-25 17:35 hnrainll 阅读(3724) 评论(0) 推荐(0) 编辑
摘要: 什么是IntentService? (本文转自http://blog.csdn.net/gaojie314/archive/2010/11/28/6040701.aspx)官方的解释是:IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand. Clients send requests through android.content.Context.startService(Intent) calls; the service i. 阅读全文
posted @ 2013-12-25 15:57 hnrainll 阅读(723) 评论(0) 推荐(0) 编辑