Reputation: 21
When i send a data SMS to Android pones, the message body is not received. It is trigerring onReceived method of BroadcastListner and i am able to get senders address but the message body is not received. It just returns null. Does anybody faced similar issues?
my manifest file includes all the entries fro receiving Data SMS.
<action android:name = "android.intent.action.DATA_SMS_RECEIVED"/>
<data android:scheme="sms"/>
<data android:host="localhost"/>
<data android:port="16000"/>
</intent-filter>
</receiver>
Does anyone know what might be the problem?
Upvotes: 0
Views: 627
Reputation: 782
How do you extract your message body? For data sms, you should use 'getUserData() instead of 'getMessageBody()' to get the message body.
Upvotes: 1