[Android] Declare Android Auto features

Geoffrey Métais git at videolan.org
Wed Nov 9 15:37:59 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May  3 19:20:35 2016 +0200| [caf6c1869950acd2a1b23af8692f5f87026a2584] | committer: Geoffrey Métais

Declare Android Auto features

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

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

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 0028e72..2729c71 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -85,6 +85,11 @@
         <meta-data android:name="com.samsung.android.sdk.multiwindow.enable" android:value="true" />
         <!-- Enable VLC in LG split window mode -->
         <meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
+        <!-- Android auto -->
+        <meta-data android:name="com.google.android.gms.car.application"
+            android:resource="@xml/automotive_app_desc"/>
+        <meta-data android:name="com.google.android.gms.car.notification.SmallIcon"
+            android:resource="@drawable/icon" />
 
         <activity
             android:name=".StartActivity">
@@ -480,7 +485,12 @@
             android:theme="@style/TransparentTheme" />
 
         <service android:name=".extensions.ExtensionManagerService" />
-        <service android:name=".PlaybackService" />
+        <service android:name=".PlaybackService"
+            android:exported="true">
+             <intent-filter>
+                <action android:name="android.media.browse.MediaBrowserService" />
+             </intent-filter>
+        </service>
         <receiver
             android:name=".widget.VLCAppWidgetProviderWhite"
             android:exported="false"



More information about the Android mailing list