[英]App after release not compatible with my device
我最近在谷歌游戏商店发布了我的第一个应用程序,当我想在我的手机上下载它我开发它时,商店说该设备不受支持。 当我检查支持的设备列表时,所有这些都是平板电脑,没有手机。
这是我的清单:
<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文档对此的说法:
从HONEYCOMB_MR2开始,这是指定应用程序兼容的最小屏幕大小的新方法。 此属性提供应用程序可以运行所需的最小“最小屏幕宽度”(根据-swNNNdp资源配置)。 例如,典型的电话屏幕是320,7英寸平板电脑600和10英寸平板电脑720.如果设备的最小屏幕宽度低于此处提供的值,则认为该应用程序与该设备不兼容。 如果未提供,则将使用任何旧的smallScreens,normalScreens,largeScreens或xlargeScreens属性。
必须是整数值,例如“100”。
这也可能是对资源(格式为“@ [package:] type:name”)或主题属性(格式为“?[package:] [type:] name”)的引用,其中包含此类型的值。
常数值:16843620(0x01010364)
如果您也想支持手机,则应删除此行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.