*Service在后台运行,处理需要在后台运行的事件。*Service的生命周期,只调用三个方法:onCreate(),onStart()和onDestroy()*启动一个Service:context.startService() -->onCreate()-->onStart()*停止一个Service:context.stopService() -->onDestroy(),如果调用者直接退出而没有调用stopService,则会一直在后台运行。*bindService后,Service就和调用bindService的进程同生共死了,就是说:当调用bindService Read More
posted @ 2011-03-21 13:21
PengG
Views(415)
Comments(0)
Diggs(0)