问题
I have developed an app using Leanback Library
. The app is working fine on Sony Android TV
.
But when I have published the app successfully on play store
then when i am searching app on my Sony Android TV
store it is showing No Results Found
message.
Here is Manifest
of my TV app.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.app"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:maxSdkVersion="23"
android:minSdkVersion="21"
android:targetSdkVersion="23"></uses-sdk>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.faketouch"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_icon"
android:label="@string/app_name"
android:theme="@style/Theme.Leanback">
<activity
android:name=".SignInActivity"
android:banner="@drawable/icon_new"
android:icon="@drawable/ic_icon"
android:label="@string/app_name"
android:logo="@drawable/ic_icon"
android:noHistory="true"
android:screenOrientation="landscape"
android:windowSoftInputMode="stateAlwaysVisible|stateVisible">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".DetailsActivity" />
<activity android:name=".PlaybackOverlayActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".BrowseErrorActivity" />
<activity android:name=".MemoryVaultActivity" />
<activity android:name=".SearchActivity" />
<activity android:name=".CustomFragment" />
</application>
</manifest>
On store only showing two supported devices.
Letv Max3-65
Letv Super TV X3-55 Pro
My Question is: What changes i need to made in my Manifest
? or any other suggestions to make it workable on Sony Android TV
.
Any help will be appreciated.
回答1:
I have removed following feature in my
AndroidManifest.xml
file:
<uses-feature
android:name="android.hardware.faketouch"
android:required="false" />
I have also removed following
permissions
:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.GET_TASKS" /> //It was for Crittercism
As my app intended for Android TV
, Touchscreen emulator
and Microphone
hardware feature does not support Android TV
. That's why I have removed, and I was success to upload application to Play Store
with compatible Sony Android TV
.
For your reference, I have referred this link.
来源:https://stackoverflow.com/questions/37681855/android-tv-published-app-not-visible-in-sony-bravia-android-tv