File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Samples/PluginMain/src/main
java/com/example/pluginmain Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 161
161
<!-- Demo config for plugin AdMob end -->
162
162
163
163
<provider
164
- android : name =" com.limpoxe.fairy.core.bridge.ProviderClientProxy"
164
+ android : name =" com.limpoxe.fairy.core.bridge.ProviderClientProxy$Stub0 "
165
165
android : authorities =" a.b.c.fileprovider"
166
166
android : grantUriPermissions =" true"
167
167
android : exported =" false" >
Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ public void onClick(View v) {
213
213
public void onClick (View v ) {
214
214
//MobclickAgent.onEvent(MainActivity.this, "test_3");
215
215
startActivity (new Intent (MainActivity .this , TestCaseListActivity .class ));
216
+
217
+ testProvider ();
216
218
}
217
219
});
218
220
}
@@ -342,13 +344,12 @@ protected void onResume() {
342
344
//FileUtil.printAll(new File(getApplicationInfo().dataDir));
343
345
344
346
//MobclickAgent.onResume(this);
345
-
346
- //testProvider();
347
347
}
348
348
349
+ /**
350
+ * 测试在宿主中调用插件的conentProvider
351
+ */
349
352
private void testProvider () {
350
-
351
- //测试在宿主中调用插件的conentProvider,
352
353
//因为目标在插件中,所以要先判断插件是否已经安装
353
354
boolean isInstalled = PluginManager .isInstalled ("com.example.plugintest" );
354
355
boolean isRunning = PluginManager .isRunning ("com.example.plugintest" );
You can’t perform that action at this time.
0 commit comments