我的Android应用不适用于Google Play上的平板电脑 [英] My android app is not available for tablets on google play

查看:73
本文介绍了我的Android应用不适用于Google Play上的平板电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个用于订购出租车的android应用.我将其上传到goole播放器上,一切正常,直到我尝试通过平板电脑找到该应用程序为止.我在Google Play上找不到该应用.我用问题搜索了一下,然后将屏幕尺寸放入清单中,但仍然无法正常工作.

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true">
    <activity
        android:name=".splash"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER"        />
        </intent-filter>
    </activity>
    <activity
        android:name=".MainActivity"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".order"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".personal"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".flight"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />

    <activity android:name=".details"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
</application>
<supports-screens
    android:anyDensity="true"
    android:xlargeScreens="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true" />

解决方案

问题处于"android.permission.CALL_PHONE"权限,可能不适用于平板电脑.您应该添加其他条目来显示不是绝对必需的功能,然后在访问这些功能时在代码中处理该情况.

<uses-feature android:name="android.hardware.telephony" android:required="false"/>

<uses-feature> 的Android文档

I made an android app for ordering a cab. I uploaded it on goole play and everything was fine until i tried to find the app over a tablet. I cannot find the app on google play. I googled the problem and i put the screen size in the manifest but its still not working.

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true">
    <activity
        android:name=".splash"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER"        />
        </intent-filter>
    </activity>
    <activity
        android:name=".MainActivity"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".order"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".personal"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
    <activity
        android:name=".flight"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />

    <activity android:name=".details"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
</application>
<supports-screens
    android:anyDensity="true"
    android:xlargeScreens="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true" />

解决方案

Issue is in "android.permission.CALL_PHONE" permission that might not be available for tablets. You should add additional entry that shows that is not absolutely required feature and then handle that scenario in your code when you are accessing those features.

<uses-feature android:name="android.hardware.telephony" android:required="false"/>

Android documentation for <uses-feature>

这篇关于我的Android应用不适用于Google Play上的平板电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆