Search code examples
androidgoogle-playgoogle-play-consoleandroid-tv

Can I use same package name for Android Mobile and Android TV apps for play store?


I have created apps for a streaming video site and offer apps on both android phone, and android tv. Code will be different, I am using different code to target different platforms, but they’ll be the same app with same functionality and same package name. So can I upload it to play store under same package name? If Yes, then How? Any help will be appreciable.


Solution

  • Ok so to upload multiple apks(tv & mobile both at same time) in same upload. I just followed the steps as below.

    1.) Define below feature in manifest when are creating an apk for mobile/tablet device.

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

    2.) Define below feature in manifest when are creating an apk for tv device.

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

    Note:- Both the apk needs different version code(for example:- tv apk contains versionCode as "12" then mobile apk contains versionCode as "13") so before generating apk you must update the version code. Also the above 2 conditions may vary as per the target device.

    For amazon store upload check for this link:- https://www.geeksforgeeks.org/how-to-publish-your-android-app-on-amazon-app-store-for-free/