Update Service 组件的启动过程.md

master
Omooo 5 years ago
parent e80790c2b5
commit 9b7b91f890
  1. 18
      blogs/Android/Framework/源代码情景分析/四大组件的启动过程/Service 组件的启动过程.md

@ -229,7 +229,23 @@ static final class ServiceDispatcher {
private final Handler mActivityThread; private final Handler mActivityThread;
private final Context mContext; private final Context mContext;
private static class InnerConnection extends private static class InnerConnection extends IServiceConnection.Stub {
fianl WeakReference<LoadedApk.ServiceDispatcher> mDispatcher;
InnerConnection(LoadedApk.ServiceDispatcher sd) {
mDispatcher = new WeakReference<>(sd);
}
}
ServiceDispatcher(ServiceConnection conn, Context context, Handler activityThread, int flags) {
mIServiceConnection = new InnerConnection(this);
mConnection = conn;
mContext = context;
mActivityThread = activityThread;
}
IServiceConnection getIServiceConnection() {
return mIServiceConnection;
}
} }
``` ```

Loading…
Cancel
Save