[Android] Activate multi windows mode for Samsung devices

Geoffrey Métais git at videolan.org
Thu Mar 24 16:40:20 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 24 16:28:05 2016 +0100| [84df7ccb2e13b0778c9aa70f7db26e55157a4518] | committer: Geoffrey Métais

Activate multi windows mode for Samsung devices

> https://code.videolan.org/videolan/vlc-android/commit/84df7ccb2e13b0778c9aa70f7db26e55157a4518
---

 vlc-android/AndroidManifest.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 52b845f..dec6bdd 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -66,6 +66,9 @@
     <uses-permission android:name="org.videolan.vlc.permission.READ_EXTENSION_DATA" />
     <uses-permission android:name="org.videolan.vlc.permission.BIND_DATA_CONSUMER" />
 
+    <!-- permission for Samsung multiwindows mode -->
+    <uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY"/>
+
     <uses-feature android:name="android.software.leanback"
         android:required="false" />
     <uses-feature
@@ -84,6 +87,10 @@
         android:label="@string/app_name"
         android:logo="@drawable/icon"
         android:theme="@style/Theme.VLC.NoTitleBar" >
+
+        <!-- Enable VLC in Samsung multiwindow mode -->
+        <meta-data android:name="com.samsung.android.sdk.multiwindow.enable" android:value="true" />
+
         <activity
             android:name="org.videolan.vlc.StartActivity">
             <intent-filter>



More information about the Android mailing list