gpt4 book ai didi

android - 发布后的应用程序与我的设备不兼容

转载 作者:太空宇宙 更新时间:2023-11-03 13:16:39 25 4
gpt4 key购买 nike

我最近在 google play 商店上发布了我的第一个应用程序,当我想将它下载到我开发它的手机上时,商店说该设备不受支持。当我查看支持的设备列表时,它们都是平板电脑,没有手机。

You can find the app here

这是我的 list :

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
package="com.thejuanandonly.schoolapp">

<supports-screens android:requiresSmallestWidthDp="480" />

<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:theme="@style/Widget.AppCompat.PopupWindow">
</uses-permission>

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

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

<application
android:allowBackup="true"
android:icon="@mipmap/ic_pls"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/DefaultTheme"
android:hardwareAccelerated="true"
android:largeHeap="true">


<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">

<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<activity
android:name=".ScheduleActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/AppTheme"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>

<activity
android:name=".TaskAdder"
app:theme="@style/ToolBarStyle"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>

<activity android:name=".SubjectDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true"
android:screenOrientation="portrait">
</activity>

<activity android:name=".PictureGroupActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>

<activity android:name=".NotesDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">

</activity>

<receiver android:process=":remote" android:name=".NotificationRecieverActivity"></receiver>

<activity android:name=".LoginActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">

</activity>

<activity android:name=".GridViewPager"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.Transparent"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>

</application>

</manifest>

最佳答案

<supports-screens android:requiresSmallestWidthDp="480" />

当然在那个设置中看起来不太好。

Android 文档对此有如下说明:

Starting with HONEYCOMB_MR2, this is the new way to specify the minimum screen size an application is compatible with. This attribute provides the required minimum "smallest screen width" (as per the -swNNNdp resource configuration) that the application can run on. For example, a typical phone screen is 320, a 7" tablet 600, and a 10" tablet 720. If the smallest screen width of the device is below the value supplied here, then the application is considered incompatible with that device. If not supplied, then any old smallScreens, normalScreens, largeScreens, or xlargeScreens attributes will be used instead.

Must be an integer value, such as "100".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

Constant Value: 16843620 (0x01010364)

如果你也想支持手机,你应该删除这一行。

关于android - 发布后的应用程序与我的设备不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35022349/

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