0

i am trying to send MMS using code sample from here. I am not sure I understand how to deal with MMSPart part and parts vars: where and how should they be filled?

Thanks in advance

Community
  • 1
  • 1
Asahi
  • 13,378
  • 12
  • 67
  • 87

1 Answers1

0

MMSPart is internal class for keeping data. Checkout this example:

Declaration:

class MMSPart {
public String Name = "";
public String MimeType = "";
public byte[] Data;
}

Example:

...
final MMSPart samplePart = new MMSPart();
samplePart.Name = "sample";
samplePart.MimeType = "text/html"
samplePart.Data = "<b>Hello !</b>".getBytes();
...
Damian Kołakowski
  • 2,731
  • 22
  • 25