SmsManager.sendDataMessage(…, onSpecificPort , …,.. ) Is not Filtering SMS On Port Basis
问题 What i want to do is Send SMS on a specific PORT and application listening to sms receiving for the same port should only react to the sms receiving. I have a receiver like this <receiver android:name=".BinarySMSReceiver"> <intent-filter> <action android:name="android.intent.action.DATA_SMS_RECEIVED"/> <data android:port="8091"/> <data android:scheme="sms"/> </intent-filter> </receiver> and sending sms like below manager.sendDataMessage(phonenumber, null, (short) SMS_PORT, data, piSend,