OK folks,
- I know how to intercept SMS and/or MMS receiver broadcasts
- I know how to parse SMS pdu
- I know how to save MMS and SMS to device storage
Only missing moment for me is how to parse MMS PDU and get binary data and its mime type.
Can anyone point me to good resource/example or just explain how to do it?
public class MmsReceiver extends BroadcastReceiver {
private static final String PDUS = "pdus";
@Override
public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.getExtras();
Object[] pdus = (Object[]) bundle.get(PDUS); //getting PDU's from extras
//what next??
}
}