SMS send as a background Service using SmsManager
问题 I am trying to create an application in Android 2.2 which sends SMS to 6 different contacts the same msg automatically in background as a Service using android.telephony.SmsManager which supports both CDMA and GSM. I saw many threads which has a code snippet but they are using which are deprecated i.e. import android.telephony.gsm.SmsManager; so i just replaced it with import android.telephony.SmsManager and wrote the following code & it works SmsManager sms = SmsManager.getDefault(); sms