public override PackageManager getPackageManager() { if (mPackageManager != null) { return(mPackageManager); } mPackageManager = new XobotPackageManager(this); return(mPackageManager); }
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); }