[Android] DebugLog: use a service with a thread

Thomas Guillem git at videolan.org
Tue Feb 10 13:36:02 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb  9 19:27:10 2015 +0100| [596b826d4333911bf9d089bcf0b8b7b171d30d82] | committer: Thomas Guillem

DebugLog: use a service with a thread

- Remove dependency to LibVLC log stuff.

- Use a thread (via Logcat class) in a service: that way, logs are not lost and
  are always updated.

- Run the service in a separate process: it's not killed if VLC crashes.

- Use a ListView to show the logs: easily scrollable.

- Add a button to save the log in sdcard.

- There is a notification to notify that logs are being recorded, and to access
  the logs.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=596b826d4333911bf9d089bcf0b8b7b171d30d82
---

 vlc-android/AndroidManifest.xml                    |    7 +-
 vlc-android/res/layout/debug_log.xml               |   35 +-
 vlc-android/res/layout/debug_log_item.xml          |    5 +
 vlc-android/res/values/strings.xml                 |    2 +
 .../src/org/videolan/vlc/gui/DebugLogActivity.java |  190 +++++++---
 .../src/org/videolan/vlc/gui/DebugLogService.java  |  389 ++++++++++++++++++++
 .../src/org/videolan/vlc/gui/IDebugLogService.aidl |   33 ++
 .../videolan/vlc/gui/IDebugLogServiceCallback.aidl |   29 ++
 8 files changed, 625 insertions(+), 65 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=596b826d4333911bf9d089bcf0b8b7b171d30d82


More information about the Android mailing list