Codename One APK Manifest for Android TV

瘦欲@ 提交于 2019-12-08 03:22:16

问题


(Note for the readers: this question is referred only to Codename One)

As I previously told in Use a Codename One app for a tv box with tv remote control, I published in the Play Store my first Codename One app for Android TV. It works fine with my Android TV-Box, but it was reject.

I received the following e-mail by the Google Play support:

Thank you for contacting the Android TV Team.

I see that there is some confusion regarding the issues we found in your app. Your TV APK manifest must contain one of these items:

  • Leanback Intent: <intent-filter><action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> </intent-filter>

  • Uses-feature leanback required=true: <uses-feature android:name="android.software.leanback"android:required="true" />

  • Uses-feature leanback required=false: <uses-feature android:name="android.software.leanback"android:required="false" />

You may also want to refer to the Android TV App Quality page for more information on our review criteria (https://developer.android.com/docs/quality-guidelines/tv-app-quality).

I hope I was able to offer some clarification. Once you have addressed the issues mentioned above, please submit a new version of your app and our team will gladly review it again for you.

So... what do I have to do? Do you have a build hint or can you add a build hint for that?


回答1:


You can use android.xpermissions as such:

android.xpermissions=<uses-feature android:name="android.software.leanback"android:required="false" />

Or true if you prefer.

You can also use android.xintent_filter to add the intent filter option but if I understand their email correctly it isn't necessary.



来源:https://stackoverflow.com/questions/54756861/codename-one-apk-manifest-for-android-tv

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!