最近在做彩信拦截,拦截是直接拦截彩信的下载通知短信,也就是wap push短信。但是首先遇到数据库变化监控问题,监控短信数据库变化的uri为content://sms,MMS的为content://mms,但是就是找不到wap push的uri;
于是改为接收到wap push的接收广播后,启动一个定时器去扫描数据库,又遇到了找不到wap push的对应uri问题,使用过content://sms和content://mms去进行数据库查询,都是没有结果,我快崩溃了,wap push到底是什么东西?
------解决方案--------------------
public static final String WAP_PUSH_RECEIVED_ACTION = "android.provider.Telephony.WAP_PUSH_RECEIVED"
Broadcast Action: A new WAP PUSH message has been received by the device. The intent will have the following extra values:
* transactionId (Integer) - The WAP transaction ID
* pduType (Integer) - The WAP PDU type
* header (byte[]) - The header of the message
* data (byte[]) - The data payload of the message
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
http://www.kiwidoc.com/java/l/x/android/android/8/p/android.provider/c/Telephony.Sms.Intents
发送短信"012345"至10086将收到Wap_push
------解决方案--------------------
彩信的是pdu表 附件是part表
content://sms和content://mms
这2个是根 只能算是db 不算是table
wappush。。。不知道 啥东东、、、、