Handle network configuration sms

时间:2015-05-08 09:54:06

标签: java android sms ota

I want to handle received sms that contains network configurations(OMA OTA). I have already developed android application that catches typical sms from inbox. Network configuration is not a typical sms. How can I get it? What is a Broadcast Action for that? I was trying this:

this

As I understood, function(){ var someArr = [...]; var someObj = {...}; someArr.forEach( function(item){ if (matchItem(item)){ this.callMethod(item.someProp); } }, someObj ); } is not enough.

1 个答案:

答案 0 :(得分:0)

好吧,我找到了solution。行动是:

android.provider.Telephony.WAP_PUSH_RECEIVED

并且必须为wap消息定义mimeType。 例如:

 <intent-filter android:priority="1" >
                <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
                <data android:mimeType="application/vnd.wap.connectivity-wbxml" />
</intent-filter>