How do I get the current message that is been received in the method:
public class RecieveSMS extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(SMS_RECEIVED)) {
try {
How would I retrieve the number, time and body? As I am trying to save the messages then abort the broadcast I’ve tried querying the content://sms but if they isn’t already a message from that user it seams to receive the first message then block the rest.
1 Answer