0

我想检查短信发送,短信发送默认短信应用程序的android os。是否有任何类型的事件OnSendSMS。像其他事件一样,例如文本更改onclick等。我是 android 中的新成员,请帮我解决这个问题。问候

4

1 回答 1

0

您需要创建一个广播接收器,如下所示,

public class checkSMSSending extends BroadcastReceiver
{   
    @Override
    public void onReceive(Context context, Intent intent)
    {   
        if (intent.getAction().equals("android.intent.action.SEND_SMS"))
        {
            System.out.println ( "SMS Sent" );
                // Place your code here.
        }
    }
}
于 2013-07-16T06:52:11.033 回答