<receiver android:name=".receiver.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER"
/>
</intent-filter>
</receiver>
<service android:name=".receiver.NoConfirmationSmsSendService"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
android:exported="true" >
<intent-filter>
<action
android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
</intent-filter>
</service>
<receiver android:name=".receiver.MmsWapPushDeliverReceiver"
android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter>
<action
android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER"
/>
</intent-filter>
</receiver>
<service android:name=".receiver.NoConfirmationSmsSendService"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
android:exported="true" >
<intent-filter>
<action
android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
</intent-filter>
</service>
<receiver android:name=".receiver.MmsWapPushDeliverReceiver"
android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter>
<action
android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
<data android:mimeType="application/vnd.wap.mms-message" />
</intent-filter>
</receiver>
短信发送代码在ManiActivity.java中不起作用
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage("number", null,
"message", null, null);
我正在制作一个默认应用程序,并将这四个添加为默认应用程序,并在清单文件中添加此后无法发送短信。从清单文件中删除这四个后,此代码有效,但我想在defat短信中进行此操作