diff options
author | Cheuksan Wang <edwang@google.com> | 2015-04-02 15:45:47 -0700 |
---|---|---|
committer | Cheuksan Wang <edwang@google.com> | 2015-04-24 22:45:46 +0000 |
commit | 9ddd2e78cb82d3c7e18aeba325bb8733cdb3fb1d (patch) | |
tree | 4707818db63e7d0fb710d0806ee6104c91834558 /api | |
parent | ebc5ced56e474e48777194fd6ca349a6cedb1e6f (diff) | |
download | frameworks_base-9ddd2e78cb82d3c7e18aeba325bb8733cdb3fb1d.zip frameworks_base-9ddd2e78cb82d3c7e18aeba325bb8733cdb3fb1d.tar.gz frameworks_base-9ddd2e78cb82d3c7e18aeba325bb8733cdb3fb1d.tar.bz2 |
Update the SmsMessage.createFromPdu() API call
Deprecate the old createFromPdu(byte[] pdu) call because it just
guesses the format of the PDU. Instead, unhide the
createFromPdu(byte[] pdu, String format) call which specifies the PDU
format.
BUG: 20015718
Change-Id: I133fc17bf5af4f762fea3106e75beea58185fd5d
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 3 | ||||
-rw-r--r-- | api/system-current.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index 5e50d80..ae21bb9 100644 --- a/api/current.txt +++ b/api/current.txt @@ -29298,7 +29298,8 @@ package android.telephony { public class SmsMessage { method public static int[] calculateLength(java.lang.CharSequence, boolean); method public static int[] calculateLength(java.lang.String, boolean); - method public static android.telephony.SmsMessage createFromPdu(byte[]); + method public static deprecated android.telephony.SmsMessage createFromPdu(byte[]); + method public static android.telephony.SmsMessage createFromPdu(byte[], java.lang.String); method public java.lang.String getDisplayMessageBody(); method public java.lang.String getDisplayOriginatingAddress(); method public java.lang.String getEmailBody(); diff --git a/api/system-current.txt b/api/system-current.txt index d94bdcb..582e7e4 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -31167,7 +31167,8 @@ package android.telephony { public class SmsMessage { method public static int[] calculateLength(java.lang.CharSequence, boolean); method public static int[] calculateLength(java.lang.String, boolean); - method public static android.telephony.SmsMessage createFromPdu(byte[]); + method public static deprecated android.telephony.SmsMessage createFromPdu(byte[]); + method public static android.telephony.SmsMessage createFromPdu(byte[], java.lang.String); method public java.lang.String getDisplayMessageBody(); method public java.lang.String getDisplayOriginatingAddress(); method public java.lang.String getEmailBody(); |