gpt4 book ai didi

android - 为什么我的应用程序没有出现在 Google Play 的平板电脑上?

转载 作者:太空狗 更新时间:2023-10-29 14:24:02 24 4
gpt4 key购买 nike

我制作了一个应用程序,在 AVDM 中的手机和平板电脑上运行良好,将应用程序上传到 Google Play,但它不会在平板电脑上显示,只在手机上显示。我拿了一些其他问题的代码,但仍然没有。我想我需要删除或添加一行,我的 Android Manifest 是:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.pack"
android:installLocation="preferExternal"
android:versionCode="3"
android:versionName="3.1"
android:windowSoftInputMode="adjustPan" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />

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

<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="100" />

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

<compatible-screens>

<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />

<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />

<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />

<!-- Nexus 7 -->
<screen android:screenSize="large" android:screenDensity="213" />

</compatible-screens>

<application
android:icon="@drawable/ic_launcher1"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

<activity
android:name=".Main"
android:label="@string/main"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

最佳答案

一些事情,

您有电话使用功能,但不请求电话权限。如果您不使用电话,请删除此行。

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

android:windowSoftInputMode="adjustPan"应该在你的 <activity> 里面 block 。

接下来,

android:requiresSmallestWidthDp="100"

来自

If your application properly resizes for smaller screen sizes (down to the small size or a minimum width of 320dp), you do not need to use this attribute.

Caution: The Android system does not pay attention to this attribute, so it does not affect how your application behaves at runtime. Instead, it is used to enable filtering for your application on services such as Google Play. However, Google Play currently does not support this attribute for filtering (on Android 3.2), so you should continue using the other size attributes if your application does not support small screens.

或者,来自相同的来源——

android:resizeable="true"

Indicates whether the application is resizeable for different screen sizes. This attribute is true, by default. If set false, the system will run your application in screen compatibility mode on large screens.

This attribute is deprecated. It was introduced to help applications transition from Android 1.5 to 1.6, when support for multiple screens was first introduced. You should not use it.

关于android - 为什么我的应用程序没有出现在 Google Play 的平板电脑上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13979012/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com