调用远程方法的时候捕获RemoteException(DeadObjectException); 调用IBinder的pingBinder()进行检测; 实现IBinder.DeathRecipient android.os.DeadObjectException at android.os.BinderProxy.transact(Native Method) at com.tzx.aidlinout.aidl.IBookManager onServiceDisconnected binder.pingBinder = false android.os.DeadObjectException at android.os.BinderProxy.transact
Android 特定问题ResourcesNotFoundException(资源未找到)、DeadObjectException(跨进程通信失败)。
服务端apk打印log:Jerry requires helloAIDL() 如果调用失败则抛出 android.os.DeadObjectException 当服务提供方App没有在运行时,调用方去请求服务会失败
act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } W BroadcastQueue: android.os.DeadObjectException
app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException = null && c instanceof DeadObjectException) { // retry connect to system binder
android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } 1143 1297 W BroadcastQueue: android.os.DeadObjectException
ApplicationErrorReport.ParcelableCrashInfo(e)); } catch (Throwable t2) { if (t2 instanceof DeadObjectException
app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException
但你会收到一个DeadObjectException的异常,可进行容错处理。 继续往下。
ApplicationErrorReport.ParcelableCrashInfo(e)); } catch (Throwable t2) { if (t2 instanceof DeadObjectException dropboxTag + "-" + uuid, crashInfo); } catch (DeadObjectException
ApplicationErrorReport.ParcelableCrashInfo(e)); } catch (Throwable t2) { if (t2 instanceof DeadObjectException
ApplicationErrorReport.ParcelableCrashInfo(e)); } catch (Throwable t2) { if (t2 instanceof DeadObjectException
但你会收到一个DeadObjectException的异常,可进行容错处理。继续往下。
ApplicationErrorReport.ParcelableCrashInfo(e)); } catch (Throwable t2) { if (t2 instanceof DeadObjectException
app.repProcState); //******************** 接这里 ************************// } catch (DeadObjectException
app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException
mAm.compatibilityInfoForPackageLocked(r.serviceInfo.applicationInfo), app.repProcState); } catch (DeadObjectException
selection, selectionArgs, sortOrder, remoteCancellationSignal); } catch (DeadObjectException
app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException
app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException app.repProcState); r.postNotification(); created = true; } catch (DeadObjectException