Skip to content Skip to sidebar Skip to footer

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 r

Solution 1:

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

publicclassSMSObserverextendsBroadcastReceiver 
{
    staticfinalStringACTION="android.provider.Telephony.SMS_SENT";

    @OverridepublicvoidonReceive(Context context, Intent intent) 
    { 
        if (intent.getAction().equals(ACTION)) 
        {
                 //your action code here
        }            
    }

Solution 2:

If you're using your local database to store the outgoing messages while sending from your application, it is possible.

Solution 3:

Try to observe the content resolver like following code:

ContentResolvercontentResolver= getContentResolver();
contentResolver.registerContentObserver("content://sms", true, yourObserver);

Post a Comment for "Observe Sms Sending App In Emulator"