-
Notifications
You must be signed in to change notification settings - Fork 24
SmsMmsHelper
SmsMmsHelper is intended to help you sending SMS or MMS, basically it throws corresponding Android Intent which by itself ends up with SMS/MMS composer. Its methods are similar to EMailHelper.
public static void sendSMS(final Context context,
final String phoneNumber,
final String text2Send)
public static void sendSMS(final Context context,
final String phoneNumber,
final String text2Send,
String pickerTitle,
String securityExceptionMessage,
String noAssociatedAppErrorMessage)
where pickerTitle is desired title shown in case of several applications will respond to Intent (for instance internal and external SMS apps), securityExceptionMessage - message shown in case of Exception and noAssociatedAppErrorMessage - message shown in case if no SMS application could be found on device.
MMS is SMS with some media content (a File basically). public static void sendMMS(final Context context, final String phoneNumbers, final String text2Send, final File file)
public static void sendMMS(final Context context,
final String phoneNumbers,
final String text2Send,
String pickerTitle,
String securityExceptionMessage,
String noAssociatedAppErrorMessage,
final File file)
where pickerTitle is desired title shown in case of several applications will respond to Intent (for instance internal and external SMS apps), securityExceptionMessage - message shown in case of Exception and noAssociatedAppErrorMessage - message shown in case if no SMS application could be found on device.