| | |
| | | private static final String TAG = "SvrManager"; |
| | | private MyServiceConn conn; |
| | | private Intent intent; |
| | | private Context mContext; |
| | | |
| | | |
| | | private IAYExamListener mCallback; |
| | |
| | | } |
| | | remoteInterface.asBinder().unlinkToDeath(mDeathRecipient,0); |
| | | remoteInterface = null; |
| | | MyLog.i("检测到远程服务异常死亡,重新绑定"); |
| | | bindRemoteService(mContext); |
| | | } |
| | | }; |
| | | |
| | |
| | | |
| | | } |
| | | public void bindRemoteService(Context mContext){ |
| | | this.mContext = mContext; |
| | | intent = new Intent(mContext,RemoteService.class); |
| | | conn = new MyServiceConn(); |
| | | mContext.bindService(intent,conn, Context.BIND_AUTO_CREATE); |