smsmanager

is there a way that I can clear the broadcast of SMS_SENT or SMS_DELIVERED so that other apps won't get it?

半世苍凉 提交于 2021-01-29 15:09:38
问题 I am looking for a potential hack in my application where I am unable to get the onReceive() or SMS_SENT or SMS_DELIVERED in devices like Oppo, Vivo, Mi. A message is sent from my device and I register a receiver to listen for the status of the message, sent and delivered, after that, I will do some networking calls. Currently, My App is unable to get the onRecieve(). Why? Because I add value to an Array every time my onReceive() gets called and send to the server. I am getting an Empty Array

SMS Manager send mutlipart message when there is less than 160 characters

社会主义新天地 提交于 2020-01-08 18:01:30
问题 I write a app which use SMS Manager. I use method sendTextMessage() but it isn't work. Now I am using sendMutlipartTextMessage() and it's work. But it's send multipart message when it is about 60 characters. This is normal? Everywhere I read than should be 160 characters. This is important to me because I must pay more. 回答1: The message character limit depends on the character bit-size of the alphabet you're using. For the standard GSM 7-bit alphabet, the character limit is 160. For an 8-bit

How can I send 140 byte in one SMS by sendDataMessage()

我只是一个虾纸丫 提交于 2020-01-06 10:54:22
问题 I have read on different forums that we can send 160 (7 bit) characters and 140 (8 bit) bytes in one SMS message. I want to send 140 bytes of data in one SMS. I am can successfully send up to 133 bytes but not more than 133 bytes, Can any one guide Why I am unable to send 140 bytes of 8 bit data in one SMS through smsManager.sendDataMessage Below is my code. int MAX_SMS_MESSAGE_LENGTH = 140; byte[] bArray = new byte [MAX_SMS_MESSAGE_LENGTH]; for(int i=0;i<MAX_SMS_MESSAGE_LENGTH;i++) { bArray