註冊攔截收到短信彩信廣播的intent-filter
<receiver
android:name=".app.MmsSmsReceiver">
<intent-filter android:priority="1000">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
<intent-filter android:priority="1000">
<action
android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
<data
android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
android:name=".app.MmsSmsReceiver">
<intent-filter android:priority="1000">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
<intent-filter android:priority="1000">
<action
android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
<data
android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.