想接收隐式意图,必须在他们的意图过滤器中配有:android.intent.category.DEFAULT类别。
<application
android:name="com.bgb.smartpro.plugin1.app.Plugin1App"
android:icon="@drawable/plugin_demo1_logo"
android:label="@string/app_name"
android:theme="@style/style_app_theme">
<!-- 启动activity -->
<activity
android:name="com.bgb.smartpro.plugin1.activity.MainActivity">
<intent-filter>
<action android:name="com.bgb.smartpro.plugin1.main"/>
<!-- 想接收隐式意图,必须在他们的意图过滤器中配有:android.intent.category.DEFAULT类别,否则Intent匹配失败-->
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- authorities该提供者的身份 -->
<provider android:name="com.bgb.smartpro.plugin1.dao.provider.DBProvider"
android:authorities="@string/authority_plugin1"/>
</application>[code="java"][/code]
<application
android:name="com.bgb.smartpro.plugin1.app.Plugin1App"
android:icon="@drawable/plugin_demo1_logo"
android:label="@string/app_name"
android:theme="@style/style_app_theme">
<!-- 启动activity -->
<activity
android:name="com.bgb.smartpro.plugin1.activity.MainActivity">
<intent-filter>
<action android:name="com.bgb.smartpro.plugin1.main"/>
<!-- 想接收隐式意图,必须在他们的意图过滤器中配有:android.intent.category.DEFAULT类别,否则Intent匹配失败-->
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- authorities该提供者的身份 -->
<provider android:name="com.bgb.smartpro.plugin1.dao.provider.DBProvider"
android:authorities="@string/authority_plugin1"/>
</application>[code="java"][/code]