2013-2-20 16:57:40

 


2013-2-20 16:57:40

02-17 11:51:36.024 I/am_finish_activity(  608): [1097540656,3407,com.android.vending/.AssetBrowserActivity,proc died without state saved]

进程死的时候没有保存状态?

从主栈中进行查找,找到对应app的,如果状态不处于结束,那么log


2995    final void appDiedLocked(ProcessRecord app, int pid,
2996            IApplicationThread thread) {
2997
2998        mProcDeaths[0]++;
2999
3000        BatteryStatsImpl stats = mBatteryStatsService.getActiveStatistics();
3001        synchronized (stats) {
3002            stats.noteProcessDiedLocked(app.info.uid, pid);
3003        }


死亡进程数目加1

更新电源计数统计

3005        // Clean up already done if the process has been re-started.
3006        if (app.pid == pid && app.thread != null &&
3007                app.thread.asBinder() == thread.asBinder()) {
3008            if (!app.killedBackground) {
3009                Slog.i(TAG, "Process " + app.processName + " (pid " + pid
3010                        + ") has died.");
3011            }

如果app的进程id和binder 相等,找到了。
前台杀和后台杀有什么区别

app的instrumentationClass为null,就需要进行低内存检测了

 handleAppDiedLocked(app, false, true);
 
 这个要进行相关的处理
 
  

你可能感兴趣的:(2013-2-20 16:57:40)