use of com.moez.QKSMS.mmssms.Message in project qksms by moezbhatti.
the class AirplaneModeReceiver method sendSms.
private void sendSms(Context context, MessageItem messageItem) {
Transaction sendTransaction = new Transaction(context, SmsHelper.getSendSettings(context));
Message message = new Message(messageItem.mBody, messageItem.mAddress);
message.setType(Message.TYPE_SMSMMS);
context.getContentResolver().delete(messageItem.mMessageUri, null, null);
sendTransaction.sendNewMessage(message, 0);
}
Aggregations