android context 获得

//     Context c = createPackageContext(

//     "com.atyun.apps.android.yundianjia",

//     Context.CONTEXT_INCLUDE_CODE

//     | Context.CONTEXT_IGNORE_SECURITY);

//     Class  clazz = c.getClassLoader().loadClass("com.atyun.apps.android.yundianjia.MyStoreUp");

//     Object owner = clazz.newInstance();

//     Object obj = clazz.getMethod("initStoreUpPage", String.class).invoke(owner,c,"top");

posted @ 2014-04-22 14:00  前天  阅读(252)  评论(0编辑  收藏  举报