コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
		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 ();
		}
コード例 #4
0
		internal XobotPackageManager (ContextImpl context)
		{
			this.context = context;
			loaded_packages = new SCG.Dictionary<string, XobotPackageInfo> ();
		}