Android 如何将应用程序限制在特定设备上?
我正在编写一个媒体播放器应用程序。最好在10英寸平板电脑、7英寸平板电脑和5英寸手机中看到。所以我想限制我的应用程序只安装在那些设备上。我该怎么做 以下是我当前的清单文件值Android 如何将应用程序限制在特定设备上?,android,android-manifest,Android,Android Manifest,我正在编写一个媒体播放器应用程序。最好在10英寸平板电脑、7英寸平板电脑和5英寸手机中看到。所以我想限制我的应用程序只安装在那些设备上。我该怎么做 以下是我当前的清单文件值 <application android:hardwareAccelerated="true" android:allowBackup="true" android:icon="@drawable/logo_new" android:label="@str
<application
android:hardwareAccelerated="true"
android:allowBackup="true"
android:icon="@drawable/logo_new"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:hardwareAccelerated="true"
android:name="VideoActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
试试这个:
在
以上代码按Play Store自动过滤设备 你看到了吗?谢谢。。这个链接很有用。。。但这个属性android:requiresSmallestWidthDp=“600”适用于7英寸平板电脑。因此,它将允许安装在5英寸screen@saaandroid:requiresSmallestWidthDp=“600”这只是一个示例,您可以自己更改。这不是强制性的。你可以用480@saa不,它告诉我们设备的最低要求是480。如果设备的容量大于此容量,则它也将支持此设备,但支持的容量不少于480。通常,5英寸屏幕以480dp开始。所以,我已经分配了480ok。。。我得到了它。谢谢让我试试你的代码。然后我会让你知道如果有任何问题。让我们
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"
android:requiresSmallestWidthDp="480"
android:compatibleWidthLimitDp="integer"
android:largestWidthLimitDp="integer"/>