Skip to content

Commit add7305

Browse files
committed
update demo
1 parent f074441 commit add7305

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Samples/PluginMain/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<!--Demo config for plugin AdMob end -->
162162

163163
<provider
164-
android:name="com.limpoxe.fairy.core.bridge.ProviderClientProxy"
164+
android:name="com.limpoxe.fairy.core.bridge.ProviderClientProxy$Stub0"
165165
android:authorities="a.b.c.fileprovider"
166166
android:grantUriPermissions="true"
167167
android:exported="false">

Samples/PluginMain/src/main/java/com/example/pluginmain/MainActivity.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ public void onClick(View v) {
213213
public void onClick(View v) {
214214
//MobclickAgent.onEvent(MainActivity.this, "test_3");
215215
startActivity(new Intent(MainActivity.this, TestCaseListActivity.class));
216+
217+
testProvider();
216218
}
217219
});
218220
}
@@ -342,13 +344,12 @@ protected void onResume() {
342344
//FileUtil.printAll(new File(getApplicationInfo().dataDir));
343345

344346
//MobclickAgent.onResume(this);
345-
346-
//testProvider();
347347
}
348348

349+
/**
350+
* 测试在宿主中调用插件的conentProvider
351+
*/
349352
private void testProvider() {
350-
351-
//测试在宿主中调用插件的conentProvider,
352353
//因为目标在插件中,所以要先判断插件是否已经安装
353354
boolean isInstalled = PluginManager.isInstalled("com.example.plugintest");
354355
boolean isRunning = PluginManager.isRunning("com.example.plugintest");

0 commit comments

Comments
 (0)