diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-09-22 18:12:59 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-09-22 18:12:59 -0700 |
commit | 764844ebbb788cdde731abbacc89b9afcab8b49f (patch) | |
tree | afb91b526f2c5ea999636bb41425d284cf65a54a /src/com | |
parent | e2607d88081f02a418ff5d5067f5327d513e00a1 (diff) | |
download | android_packages_providers_DownloadProvider-764844ebbb788cdde731abbacc89b9afcab8b49f.tar.gz android_packages_providers_DownloadProvider-764844ebbb788cdde731abbacc89b9afcab8b49f.tar.bz2 android_packages_providers_DownloadProvider-764844ebbb788cdde731abbacc89b9afcab8b49f.zip |
Log the service being launched
BUG=2055624
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/providers/downloads/DownloadService.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index 3824fc2e..d308689c 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -223,6 +223,13 @@ public class DownloadService extends Service { * Responds to a call to startService */ public void onStart(Intent intent, int startId) { + if (Constants.LOGX) { + if (Helpers.isNetworkAvailable(this)) { + Log.i(Constants.TAG, "Service Start, Net Up"); + } else { + Log.i(Constants.TAG, "Service Start, Net Down"); + } + } super.onStart(intent, startId); if (Constants.LOGVV) { Log.v(Constants.TAG, "Service onStart"); @@ -261,6 +268,13 @@ public class DownloadService extends Service { } public void run() { + if (Constants.LOGX) { + if (Helpers.isNetworkAvailable(DownloadService.this)) { + Log.i(Constants.TAG, "Update, Net Up"); + } else { + Log.i(Constants.TAG, "Update, Net Down"); + } + } Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); boolean keepService = false; |