最近在做彩信拦截,拦截是直接拦截彩信的下载通知短信,也就是wap push短信。但是首先遇到数据库变化监控问题,监控短信数据库变化的uri为content://sms,MMS的为content://mms,但是就是找不到wap push的uri;于是改为接收到wap push的接收广播后,启动一个定时器去扫描数据库,又遇到了找不到wap push的对应uri问题,使用过content://sms和content://mms去进行数据库查询,都是没有结果,我快崩溃了,wap push到底是什么东西?

解决方案 »

  1.   

    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 messageIf 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
      

  2.   

    那么wap push的数据表结构是什么?我想操作已存在数据库内的wap push怎么办?比如delete或者insert wap push什么的
      

  3.   

    彩信的是pdu表 附件是part表content://sms和content://mms
    这2个是根  只能算是db 不算是table
    wappush不知道 啥东东、、、、
      

  4.   

    WapPush的监听问题解决,用彩信的协议可以监听得到;现在有个新问题,WapPush是如何存入数据库的?SMS通过insert,将发信人号码、内容、时间等,通过content://smszhegeuri将它插入数据库就行,那么WapPush要实现由自己来插入数据库该如何做呢?
      

  5.   

    楼主,你的需求实现了没?若实现了,分享一下,[email protected]。先谢谢啦!!