首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

谈谈Activity怎么启动的

2012-07-30 
谈谈Activity如何启动的调用栈如下ActivityManagerService.java ????????????? public void systemReady(f

谈谈Activity如何启动的

调用栈如下

ActivityManagerService.java

????????????? public void systemReady(final Runnable goingCallback) 传入goingCallback = null,

ActivityStack.java

??????????????? final boolean resumeTopActivityLocked(ActivityRecord prev) 传入 null

???????????????????????

?Process.java

?

    public static final ProcessStartResult start(final String processClass,                                  final String niceName,                                  int uid, int gid, int[] gids,                                  int debugFlags, int targetSdkVersion,                                  String[] zygoteArgs) {        try {            return startViaZygote(processClass, niceName, uid, gid, gids,                    debugFlags, targetSdkVersion, zygoteArgs);        } catch (ZygoteStartFailedEx ex) {            Log.e(LOG_TAG,                    "Starting VM process through Zygote failed");            throw new RuntimeException(                    "Starting VM process through Zygote failed", ex);        }    }

?

热点排行