Example #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();
        }
Example #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);
        }
Example #3
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 ();
		}
Example #4
0
		internal XobotPackageManager (ContextImpl context)
		{
			this.context = context;
			loaded_packages = new SCG.Dictionary<string, XobotPackageInfo> ();
		}