How to Read MMS Data in Android?

前端 未结 5 1361
梦毁少年i
梦毁少年i 2020-11-22 13:52

I want to read MMS data I have seen the part table in the mmssms.db where the mms entries are stored; I am using a cursor and I want to know the appropriate

5条回答
  •  [愿得一人]
    2020-11-22 14:16

    The answer given above for getting the getMMSAddress() should not contain the loop while (cursor.moveToNext());. It should only extract the address from the first element in the cursor. For some reason that is unknown to me, this cursor has more than one record. The first one contains the Sender's address. The other elements of the cursor beyond the first one, contain the receiver's address. Thus the code as is return the receivers address and not the sender address.

    This has been very helpful for cracking open the contents of an MMS.

提交回复
热议问题