首页天道酬勤最新android版本,activity获取焦点执行方法

最新android版本,activity获取焦点执行方法

张世龙 05-06 09:17 19次浏览

activity.start activity=startactivityforresult

instrumentation.execstartactivity

activitytaskmanager.start activity

activitytaskmanagerservice.start activity=startactivityasuser

resumetopactivityinnerlocked { if (next.attachedtoprocess () ) {//Activity已经启动,直接finalclienttransaction=cons acttion maractivitem.obtain (next.app uest ),用于稍后执行handleResumeActivity操作transaction.setlifecyclestaterequest } else {//mstack supervisor.startspecificactivity (next,true,true ); }

realstartactivitylocked { finalclienttransactionclienttransaction=client transaction.obtain (proc.get thread )、r.app apap 稍后用于执行handleLaunchActivity操作client transaction.add callback (launchactivityitem.obtain (new intent () ) r.)的if 稍后执行handleResumeActivity操作的life cycle item=resumeactivityitem.obtain (DC.isnextrance ) client transaction.setlifecycles m服务. getlifecyclemanager ().schedule transaction (client transaction ); } clientlifecyclemanager.schedule transaction

ClientTransaction.schedule

activity thread.schedule transaction (clienttransactionhandler的方法(activity thread的父类) ) ) ) ) )。

activity thread.h.execute _ transaction

execute callbacks { finallistclienttransactionitemcallbacks=transaction.get callbacks (; final int size=callbacks.size (; for(intI=0; i size; I ) finalclienttransactionitemitem=callbacks.get (I; item.execute (mtransactionhandler,token,mPendingActions ); } executelifecyclestate { finalactivitylifecycleitemlifecycleitem=transaction.getlifecyclestaterequest (; 生命周期item.execute (mtransactionhandler,token,mPendingActions ); } LaunchActivityItem.execute

execute (勤劳的小蚂蚁,IBinder token,pendingtransactionactionspendingactions ((client.handlelaunchactivity ),pendingActions

execute (勤劳的小蚂蚁,IBinder token,pendingtransactionactionspendingactions ) (client.handleresumeactivity ) token,true /

activity.perform create=oncreate

安卓系统启动流程,android的activity