Sending SMS without spending money is possible only if you are implementing a FREE SMS message. Based on which country you are, you will find a FREE SMS GATEWAY and try to find any web services or APIs that they provide. Write a code using this and you can send SMS for free. To do of course, this requires an Internet connection on your phone.
If you implement BroadCast Receiver for incoming SMS, in this case the following code will track your incoming SMS and provide you with the message number and sender.
import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.gsm.SmsMessage; import android.widget.Toast; public class SmsReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) {
source share