D
D
dex1232021-04-17 03:00:18
Android
dex123, 2021-04-17 03:00:18

App won't launch on android tv?

Why won't it run on android TV?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.mobile.app"
    tools:ignore="MissingLeanbackLauncher">

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    <application
        android:name="com.mobile.app.utils.MyAppClass"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true"
        tools:ignore="GoogleAppIndexingWarning">
        <activity android:name="com.mobile.app.RazorPayActivity" />
        <activity android:name="com.mobile.app.SearchActivity" />
        <activity
            android:name="com.mobile.app.PapalPaymentActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity android:name="com.mobile.app.WebViewActivity" />

        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="@string/admob_application_id" />
        <meta-data
            android:name="com.onesignal.NotificationOpened.DEFAULT"
            android:value="DISABLE" />
        <meta-data
            android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"
            android:value="com.google.android.exoplayer2.ext.cast.DefaultCastOptionsProvider" />
        <!-- facebook -->
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id"
            tools:replace="android:value" /> <!-- razorpay metadata -->
        <!--
 <meta-data
            android:name="com.razorpay.ApiKey"
            android:value="rzp_live_eHkQKgddhVS9ub"/>
        -->
        <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name" />
        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity> <!-- facebook end -->
        <activity
            android:name="com.mobile.app.TermsActivity"
            android:screenOrientation="fullSensor"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.ReplyActivity"
            android:label="@string/title_activity_reply"
            android:theme="@style/AppTheme.NoActionBar" />
        <activity
            android:name="com.mobile.app.ProfileActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.PassResetActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.SearchResultActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.SignUpActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.LoginActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.DetailsActivity"
            android:configChanges="screenLayout|screenSize|orientation"
            android:label="@string/title_activity_details"
            android:windowSoftInputMode="adjustPan"
            android:theme="@style/AppTheme.NoActionBar" />
        <!-- android:configChanges="screenLayout|screenSize|orientation" -->
        <activity
            android:name="com.mobile.app.MainActivity"
            android:theme="@style/AppTheme.Nobar"
            android:windowSoftInputMode="adjustPan" />
        <activity
            android:name="com.mobile.app.SettingsActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.SplashScreenActivity"
            android:configChanges="orientation|keyboardHidden|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.mobile.app.ItemMovieActivity"
            android:label="@string/title_activity_item_show"
            android:theme="@style/AppTheme.NoActionBar" />
        <activity
            android:name="com.mobile.app.ItemTVActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.ItemSeriesActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.SubscriptionActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.StripePaymentActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.PurchasePlanActivity"
            android:theme="@style/AppTheme.Nobar" />
        <activity
            android:name="com.mobile.app.DownloadActivity"
            android:theme="@style/AppTheme.Nobar" />

    </application>

</manifest>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2021-04-17
@maaGames

Read the development documentation for TV. Hurry up, google LEANBACK_LAUNCHER.

F
Forbidden to ask questions!, 2021-05-06
@prizgost

It is not compatible with this version of Android.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question