Working Example Of Senddatamessage() For Android
I have tried to use the sendDataMessage() of android.telephony.SmsManager with the help of almost every sample that i could come accross.. Yet no success.. [In case u want to see t
Solution 1:
Well i seem to have found out the problem in my code.
The fix was to change the android:name value in the above shown receiver from android.provider.Telephony.SMS_RECEIVED to android.intent.action.DATA_SMS_RECEIVED
So the new receiver will look like:
<receiverandroid:name=".SMSReceiver"><intent-filter><actionandroid:name="android.intent.action.DATA_SMS_RECEIVED" /><dataandroid:port="8901"/><dataandroid:scheme="sms"/></intent-filter></receiver>
Thanks to KRVarma SMSDemo which provided some really useful insight after understanding the code.
Solution 2:
Here are details of a possible bug with the Android emulator regarding this functionality.
Post a Comment for "Working Example Of Senddatamessage() For Android"