Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Observe sms sending app in emulator

Is there a way to read outgoing sms from the emulator?

In the logcat I see this message:

D/SmsStorageMonitor(  738): SMS send size=0 time=1327423357467

Is there a way to get the receiver and the content?

The outgoing sms seems not to be saved in the emulator. That means that the messenger app shows me no sms.

like image 209
rekire Avatar asked Nov 27 '25 19:11

rekire


1 Answers

Yes just create one service in your app and observe all outgoing sms just refer below code.

public class SMSObserver extends BroadcastReceiver 
{
    static final String ACTION ="android.provider.Telephony.SMS_SENT";

    @Override 
    public void onReceive(Context context, Intent intent) 
    { 
        if (intent.getAction().equals(ACTION)) 
        {
                 //your action code here
        }            
    }
like image 154
Girish Bhutiya Avatar answered Nov 29 '25 09:11

Girish Bhutiya