摘要:        
Service 学习第二篇,我们使用BindService()来启动Service.第一步,同样需要继承Service ,实现它必须的方法。并把这个Service注册到AndroidManifest.xml中,做为一种隐式意图,然后等待Activity的启动。 这里IBinder onBind(Intent intent);会返回一个IBinder 对象。就是我们Acitvity 与Service 交互的对象。BindService.javapackage com.hkrt.action; import android.app.Service;
import android.co...    阅读全文
posted @ 2011-10-19 10:09
C语言程序
阅读(480)
评论(0)
推荐(0)
        

 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号