File tree Expand file tree Collapse file tree
Channel2App/src/main/java/com/anno Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,4 +83,6 @@ public List<ServiceData> getDataList() throws RemoteException {
8383 }
8484 };
8585
86+
87+
8688}
Original file line number Diff line number Diff line change @@ -185,6 +185,8 @@ private void getData(){
185185 //http://blog.csdn.net/liuyi1207164339/article/details/51706585
186186 //服务端使用死亡回调回收数据
187187 //http://www.cnblogs.com/punkisnotdead/p/5158016.html
188+ //死亡通知原理分析
189+ //http://light3moon.com/2015/01/28/Android%20Binder%20%E5%88%86%E6%9E%90%E2%80%94%E2%80%94%E6%AD%BB%E4%BA%A1%E9%80%9A%E7%9F%A5[DeathRecipient]/
188190 /**
189191 * 监听Binder是否死亡
190192 */
@@ -194,6 +196,7 @@ public void binderDied() {
194196 if (myAIDLService == null ) {
195197 return ;
196198 }
199+ //死亡后解除绑定
197200 myAIDLService .asBinder ().unlinkToDeath (mDeathRecipient , 0 );
198201 myAIDLService = null ;
199202 //重新绑定
You can’t perform that action at this time.
0 commit comments