gpt4 book ai didi

android - 如何限制应用程序到特定设备?

转载 作者:行者123 更新时间:2023-11-29 00:23:36 24 4
gpt4 key购买 nike

我正在编写媒体播放器应用程序。最好在10寸平板、7寸平板、5寸手机上看到。所以我想限制我的应用程序只安装到这些设备上。我怎样才能做到这一点?

这是我当前的 list 文件值

<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>

最佳答案

试试这个:

在您的 AndroidManifest.xml 上添加以下内容之前<application>标签:

<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"/>

您也可以点击引用链接::

http://android-developers.blogspot.in/2011/09/preparing-for-handsets.html

enter image description here

以上代码自动按 Play 商店过滤设备。

关于android - 如何限制应用程序到特定设备?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21426904/

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