傻啦吧唧的程序员丶

2012年9月15日

Android中Activity和Service的绑定(二)

摘要: public class BinderActivity extends Activity { private Button startBinderServices; private Button stopBinderServices; private Boolean isConnected = false; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou... 阅读全文

posted @ 2012-09-15 20:47 傻啦吧唧的程序员丶 阅读(180) 评论(0) 推荐(0) 编辑

Android中Activity和Service的绑定(一)

摘要: public class BindService extends Service { private static final String TAG = "BindService"; private MyBinder binder = new MyBinder(); public class MyBinder extends Binder { public BindService getService () { return BindService.this; }... 阅读全文

posted @ 2012-09-15 20:32 傻啦吧唧的程序员丶 阅读(119) 评论(0) 推荐(0) 编辑

导航