diff options
author | Tom Taylor <tomtaylor@google.com> | 2009-10-28 14:38:44 -0700 |
---|---|---|
committer | Tom Taylor <tomtaylor@google.com> | 2009-10-28 14:38:44 -0700 |
commit | e86721843333a00a9ff279af988d702e2da6bf2c (patch) | |
tree | 4f9125d0d463a9d48654df5af76a7cc61f1eb123 | |
parent | 10d32a338d5400786e784a0d6f51b53acea76b44 (diff) | |
download | frameworks_base-e86721843333a00a9ff279af988d702e2da6bf2c.zip frameworks_base-e86721843333a00a9ff279af988d702e2da6bf2c.tar.gz frameworks_base-e86721843333a00a9ff279af988d702e2da6bf2c.tar.bz2 |
Add error code column to SMS
Also add code to save an error code in the DB.
-rw-r--r-- | core/java/android/provider/Telephony.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index d8c5a53..9a72d93 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -152,6 +152,12 @@ public final class Telephony { * <P>Type: INTEGER (boolean)</P> */ public static final String LOCKED = "locked"; + + /** + * Error code associated with sending or receiving this message + * <P>Type: INTEGER</P> + */ + public static final String ERROR_CODE = "error_code"; } /** @@ -243,7 +249,7 @@ public final class Telephony { * @return true if the operation succeeded */ public static boolean moveMessageToFolder(Context context, - Uri uri, int folder) { + Uri uri, int folder, int error) { if (uri == null) { return false; } @@ -266,7 +272,7 @@ public final class Telephony { return false; } - ContentValues values = new ContentValues(2); + ContentValues values = new ContentValues(3); values.put(TYPE, folder); if (markAsUnread) { @@ -274,6 +280,7 @@ public final class Telephony { } else if (markAsRead) { values.put(READ, Integer.valueOf(1)); } + values.put(ERROR_CODE, error); return 1 == SqliteWrapper.update(context, context.getContentResolver(), uri, values, null, null); |