android - Binary SMS not working -
i sending binary sms 1 emulator another, both galaxy nexus api 22. message gets sent, 3 problems arise:
- on sending emulator, default sms app displays sms normal sent text message.
- on receiving emulator, notification pops when sms received, , sms appears in default message app normal received text message.
- my app not receive binary sms.
sender (main activity oncreate):
button.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { smsmanager.getdefault().senddatamessage( "5556", null, (short) 2345, "this binary sms!".getbytes(), null, null); } });
manifest entry receiver:
<receiver android:name=".receiver" android:exported="true"> <intent-filter> <action android:name="android.intent.action.data_sms_received" /> <data android:scheme="sms" android:host="*" android:port="2345" /> </intent-filter> </receiver>
receiver copy of binary sms receiver tutorial.
Comments
Post a Comment