Search in sources :

Example 6 with Message

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);
}
Also used : Transaction(com.moez.QKSMS.mmssms.Transaction) Message(com.moez.QKSMS.mmssms.Message)

Aggregations

Message (com.moez.QKSMS.mmssms.Message)6 Transaction (com.moez.QKSMS.mmssms.Transaction)6 Bundle (android.os.Bundle)2 PendingIntent (android.app.PendingIntent)1 Intent (android.content.Intent)1 Uri (android.net.Uri)1 ConversationLegacy (com.moez.QKSMS.data.ConversationLegacy)1