紀錄一下寫Service遇到的issue
在使用bindService()時,是一個Asynchronous的method,會觸發service的onBind
並且在activity得到一的binder的物件用以和service溝通
example:MyService.java
public MyBinderClass mBinder=new MyBinderClass(); @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return mBinder; }