rfa bbc
- Forum posts: 1
Feb 22, 2013, 2:43:09 AM via Website
Feb 22, 2013 2:43:09 AM via Website
Hi guys,
There is a private method as the following:
And this code snippet DOES work well:
On another device, there is another signature for this method, as below:
[CODE]private void android.telephony.SmsManager.sendRawPdu([B,[B,android.app.PendingIntent,android.app.PendingIntent)[/CODE]
This one uses '[B' instead of 'byte[]'. I've tried the above code snippet but it does NOT work. Please help me to re-write the code.
Thanks a lot.
There is a private method as the following:
1private void android.telephony.SmsManager.sendRawPdu(byte[],byte[],android.app.PendingIntent,android.app.PendingIntent)
And this code snippet DOES work well:
1private void sendSMS(byte[] encodedAddress, byte[] encodedMessage) {
2Method mtd1 = SmsManager.class.getDeclaredMethod("sendRawPdu", byte[].class, byte[].class, PendingIntent.class, PendingIntent.class);
3mtd1.setAccessible(true);
4mtd1.invoke(SmsManager.getDefault(), encodedAddress, encodedMessage, null, null);
5}
2Method mtd1 = SmsManager.class.getDeclaredMethod("sendRawPdu", byte[].class, byte[].class, PendingIntent.class, PendingIntent.class);
3mtd1.setAccessible(true);
4mtd1.invoke(SmsManager.getDefault(), encodedAddress, encodedMessage, null, null);
5}
On another device, there is another signature for this method, as below:
[CODE]private void android.telephony.SmsManager.sendRawPdu([B,[B,android.app.PendingIntent,android.app.PendingIntent)[/CODE]
This one uses '[B' instead of 'byte[]'. I've tried the above code snippet but it does NOT work. Please help me to re-write the code.
Thanks a lot.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.