internal ActivityThread() { sThreadLocal.set(this); mSystemThread = true; mInstrumentation = new Instrumentation(); ContextImpl context = new ContextImpl(); context.init(getSystemContext().mPackageInfo, null, this); var res = context.getResources(); mConfiguration = res.getConfiguration(); XobotActivityManager.DeviceConfig.updateConfig(mConfiguration); res.updateConfiguration(mConfiguration, res.getDisplayMetrics()); applyConfigurationToResourcesLocked(mConfiguration, mResCompatibilityInfo); applyCompatConfiguration(); Application app = new Application(); app.attach(context); mAllApplications.add(app); mInitialApplication = app; app.onCreate(); }
public ClassLoader getClassLoader() { if (mClassLoader != null) { return(mClassLoader); } ContextImpl context = mActivityThread.getSystemContext(); XobotPackageManager pm = (XobotPackageManager)context.getPackageManager(); Assembly asm = pm.GetAssembly(mPackageName); mClassLoader = new AssemblyClassLoader(asm, mPackageName); return(mClassLoader); }
internal ActivityThread () { sThreadLocal.set (this); mSystemThread = true; mInstrumentation = new Instrumentation (); ContextImpl context = new ContextImpl (); context.init (getSystemContext ().mPackageInfo, null, this); var res = context.getResources (); mConfiguration = res.getConfiguration (); XobotActivityManager.DeviceConfig.updateConfig (mConfiguration); res.updateConfiguration (mConfiguration, res.getDisplayMetrics ()); applyConfigurationToResourcesLocked (mConfiguration, mResCompatibilityInfo); applyCompatConfiguration (); Application app = new Application (); app.attach (context); mAllApplications.add (app); mInitialApplication = app; app.onCreate (); }
internal XobotPackageManager (ContextImpl context) { this.context = context; loaded_packages = new SCG.Dictionary<string, XobotPackageInfo> (); }