[Android] Only one way to get LibVLC instance.

Thomas Guillem git at videolan.org
Mon Mar 23 12:08:15 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 23 11:14:01 2015 +0100| [8886729da9116f7791c63e3c462672c5bbcd0888] | committer: Thomas Guillem

Only one way to get LibVLC instance.

There were 2 differents way to get a LibVLC instance. For now, use only
VLCInstance.get() utility method. This method will init LibVLC if it's not
already done.

This method will throw an IllegalStateException if LibVLC.init() failed. It's
not a compatible CPU error, the application will crash with the default android
crash dialog instead of the custom CompatErrorActivity. It allows the error to
be reported to the google play dev console.

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

 libvlc/src/org/videolan/libvlc/LibVLC.java         |   43 +-----------
 vlc-android/src/org/videolan/vlc/MediaLibrary.java |    8 +--
 .../videolan/vlc/RemoteControlClientReceiver.java  |   11 +---
 vlc-android/src/org/videolan/vlc/Thumbnailer.java  |   10 +--
 .../src/org/videolan/vlc/audio/AudioService.java   |   21 +++---
 .../videolan/vlc/gui/DirectoryViewFragment.java    |    5 +-
 .../src/org/videolan/vlc/gui/MainActivity.java     |   35 ++--------
 .../org/videolan/vlc/gui/PreferencesActivity.java  |    2 +-
 .../videolan/vlc/gui/audio/EqualizerFragment.java  |    4 +-
 .../videolan/vlc/gui/dialogs/JumpToTimeDialog.java |    2 +-
 .../videolan/vlc/gui/dialogs/PickTimeFragment.java |    3 +-
 .../vlc/gui/dialogs/TimePickerDialogFragment.java  |    4 +-
 .../videolan/vlc/gui/expandable/JumpToTime.java    |    9 +--
 .../videolan/vlc/gui/expandable/SpeedSelector.java |   12 ++--
 .../videolan/vlc/gui/network/NetworkFragment.java  |    5 +-
 .../videolan/vlc/gui/video/AdvOptionsDialog.java   |    9 +--
 .../videolan/vlc/gui/video/MediaInfoFragment.java  |   10 +--
 .../videolan/vlc/gui/video/VideoGridFragment.java  |    5 +-
 .../vlc/gui/video/VideoPlayerActivity.java         |   41 ++++++------
 .../src/org/videolan/vlc/util/VLCInstance.java     |   69 +++++++++++++-------
 .../org/videolan/vlc/gui/tv/MainTvActivity.java    |   24 +++----
 21 files changed, 136 insertions(+), 196 deletions(-)

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


More information about the Android mailing list