【文件属性】:
文件名称:android MMS短信开发
文件大小:100KB
文件格式:HTM
更新时间:2017-05-23 11:00:48
MMS短信
首先写一个应用 注册一个开机完成广播接收者
<receiver android:name " MyBrocast" android:permission "android permission BROADCAST SMS">
<intent filter android:priority "2147483647">
<action android:name "android provider Telephony SMS RECEIVED" >
< intent filter>
<intent filter android:priority "2147483647">
<action android:name "android intent action BOOT COMPLETED" >
< intent filter>
< receiver>
然后在这个广播接收者接收到信息之后马上启动一个service
public void onReceive Context context Intent intent {
Log v "MyBrocast onReceive" "testtttttttttttt" ;
if intent getAction equals Intent ACTION BOOT COMPLETED {
Intent service new Intent context MyService class ;
context startService service ;
}">首先写一个应用 注册一个开机完成广播接收者
<receiver android:name " MyBrocast" android:permission "android permission BROADCAST SMS">
<intent filter android:priority "2147483647">
<action android:name [更多]