android - Binary SMS not working -


i sending binary sms 1 emulator another, both galaxy nexus api 22. message gets sent, 3 problems arise:

  1. on sending emulator, default sms app displays sms normal sent text message.
  2. on receiving emulator, notification pops when sms received, , sms appears in default message app normal received text message.
  3. 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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -