Android Mms Parsing
In one of my application, I have to parse the MMS content. I am able to get the encoded MMS content in the form of byte[]. Now I have to decode this byte[] and need to extract all
Solution 1:
you have the content in byte[] so you can try this:
byte[] buffer;
StringincomingNumber=newString(buffer);
intindx= incomingNumber.indexOf("/TYPE");
if(indx>0 && (indx-15)>0){
intnewIndx= indx - 15;
incomingNumber = incomingNumber.substring(newIndx, indx);
indx = incomingNumber.indexOf("+");
if(indx>0){
incomingNumber = incomingNumber.substring(indx);
}
you can continue to parse like this.
Post a Comment for "Android Mms Parsing"