[Android] Make recommandation when we leave app
Geoffrey Métais
git at videolan.org
Tue Mar 17 13:30:44 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 17 13:21:08 2015 +0100| [9816d40026733593b500dc85f3a9a7611f423f7a] | committer: Geoffrey Métais
Make recommandation when we leave app
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9816d40026733593b500dc85f3a9a7611f423f7a
---
vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index 8db7b48..52f7170 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -147,7 +147,11 @@ public class MainTvActivity extends Activity implements IVideoBrowser, OnItemVie
mRootContainer = mBrowseFragment.getView();
mMediaLibrary.loadMediaItems(this, true);
BackgroundManager.getInstance(this).attach(getWindow());
+ }
+ @Override
+ protected void onStop() {
+ super.onStop();
Intent recommendationIntent = new Intent(this,
RecommendationsService.class);
startService(recommendationIntent);
More information about the Android
mailing list