summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorThomas Guillem <thomas@gllm.fr>2020-03-25 21:57:50 +0100
committerMax Kellermann <max@musicpd.org>2020-03-26 17:31:20 +0100
commit4ff2532330c004494a4abf844f4177735b307389 (patch)
tree9997646836f84eb9702baf4c3b3283438f73e78d /android
parent9c15760c4d932b1a9fde83661d0a58dd8e2efece (diff)
android: add TV support
TODO: Not sure the app could be accepted on the play store without a valid banner.
Diffstat (limited to 'android')
-rw-r--r--android/AndroidManifest.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
index 01ff051c4..4dcdba4fd 100644
--- a/android/AndroidManifest.xml
+++ b/android/AndroidManifest.xml
@@ -7,6 +7,11 @@
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/>
+ <uses-feature android:name="android.software.leanback"
+ android:required="false" />
+ <uses-feature android:name="android.hardware.touchscreen"
+ android:required="false" />
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.INTERNET"/>
@@ -15,6 +20,7 @@
<application android:allowBackup="true"
android:icon="@drawable/icon"
+ android:banner="@drawable/icon"
android:label="@string/app_name">
<activity android:name=".Settings"
android:label="@string/app_name">
@@ -23,6 +29,14 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+ <activity android:name=".Settings"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+ </intent-filter>
+ </activity>
+
<receiver android:name=".Receiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />