Example #1
0
        public override PackageManager getPackageManager()
        {
            if (mPackageManager != null)
            {
                return(mPackageManager);
            }

            mPackageManager = new XobotPackageManager(this);
            return(mPackageManager);
        }
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);
        }