Android 短信 彩信 wap push的接收

 

Android 短信 彩信 wap push的接收

 

http://www.4ucode.com/Study/Topic/711107

 

正文

接收彩信

 

<receiver android:name=".smsreceiver"  
     android:permission="android.permission.BROADCAST_WAP_PUSH">  
        <intent-filter android:priority="10000">  
          <action android:name= "android.provider.Telephony.WAP_PUSH_RECEIVED" />  
          <data android:mimeType="application/vnd.wap.mms-message" />  
        </intent-filter>  
     </receiver> 

 

 接收wap push

 

<receiver android:name=".smsreceiver">  
    <intent-filter>  
        <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />  
        <data android:mimeType="application/vnd.wap.sic" />  
    </intent-filter>  
    </receiver>  

 

 接收短信

 

<receiver android:name=".smsreceiver">  
        <intent-filter>  
           <action android:name="android.provider.Telephony.SMS_RECEIVED" />  
        </intent-filter>  
     </receiver> 

 

 然后在程序里用一个

 

  1. public class smsreceiver extends BroadcastReceiver  

 

来进行相应的接收即可

别忘记 加上权限

 

 

 

<uses-permission android:name="android.permission.RECEIVE_MMS" />  
    <uses-permission android:name="android.permission.RECEIVE_WAP_PUSH" />  
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>  

 

你可能感兴趣的:(android,移动开发,push,WAP,休闲,彩信)