想创建其他应用的上下文,首先必须知道它的包名,代码如下:
Context testContext = createPackageContext("com.android.deskclock", Context.CONTEXT_IGNORE_SECURITY); Context tes想创建其他应用的上下文,首先必须知道它的包名,代码如下:
Context testContext = createPackageContext("com.android.deskclock", Context.CONTEXT_IGNORE_SECURITY); Context tes