diff options
author | Jake Hamby <jhamby@google.com> | 2012-04-17 18:26:46 -0700 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2012-04-24 17:01:20 -0700 |
commit | 47ffe15b440cb98548c0f2c58cbd1e64dd0435db (patch) | |
tree | 7d939a1fc4b0bd41c38f76ef449b5da12a1f6453 /src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java | |
parent | 0b92192b658da076c501a71803d172c5af4cf384 (diff) | |
download | android_packages_apps_CellBroadcastReceiver-47ffe15b440cb98548c0f2c58cbd1e64dd0435db.tar.gz android_packages_apps_CellBroadcastReceiver-47ffe15b440cb98548c0f2c58cbd1e64dd0435db.tar.bz2 android_packages_apps_CellBroadcastReceiver-47ffe15b440cb98548c0f2c58cbd1e64dd0435db.zip |
Add ContentProvider for received cell broadcasts.
Enable apps with android.permission.READ_CELL_BROADCASTS to access the
database of received cell broadcasts via a ContentProvider at URI
"content://cellbroadcasts/". The ContentProvider is read-only, but
provides internal methods for the app to insert and delete broadcasts,
and to mark broadcasts as read. These methods are not exposed to other
applications.
Other changes:
* Added static log() methods for simpler debug logging.
* Moved CellBroadcastDatabase.DatabaseHelper to new top-level
CellBroadcastDatabaseHelper class after refactoring the original
CellBroadcastDatabase class out of existence.
* Removed the "Delete" dialog title per Android UI guidelines,
and changed from a custom view to a built-in dialog type.
Bug: 5752924
Change-Id: I1ad6a4d5248f851c53a638c2cb7e85a57ba6b811
Diffstat (limited to 'src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java')
-rw-r--r-- | src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java index e762678a..3be8439d 100644 --- a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java +++ b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java @@ -16,15 +16,12 @@ package com.android.cellbroadcastreceiver; -import android.app.KeyguardManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; -import android.os.Handler; -import android.os.Message; -import android.util.Log; +import android.telephony.CellBroadcastMessage; /** * Custom alert dialog with optional flashing warning icon. @@ -32,7 +29,6 @@ import android.util.Log; * Keyguard handling based on {@code AlarmAlert} class from DeskClock app. */ public class CellBroadcastAlertDialog extends CellBroadcastAlertFullScreen { - private static final String TAG = "CellBroadcastAlertDialog"; private BroadcastReceiver mScreenOffReceiver; |