30 lines
737 B
Java
30 lines
737 B
Java
package com.openwide.android;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import android.app.PendingIntent;
|
|
import android.telephony.gsm.SmsManager;
|
|
|
|
|
|
@SuppressWarnings("deprecation")
|
|
public class MySMSManagerCupcake extends MySMSManager {
|
|
|
|
SmsManager mManager;
|
|
public MySMSManagerCupcake() {
|
|
mManager = SmsManager.getDefault();
|
|
}
|
|
|
|
|
|
@Override
|
|
public ArrayList<String> divideMessage(String text) {
|
|
|
|
return mManager.divideMessage(text);
|
|
}
|
|
|
|
public void sendMultipartTextMessage(String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents ) {
|
|
mManager.sendMultipartTextMessage(destinationAddress, scAddress, parts, sentIntents, deliveryIntents);
|
|
}
|
|
|
|
|
|
}
|