How to exlude all the devices which have low GPU in Android Manifest?

点点圈 提交于 2019-11-28 08:14:30

问题


Basically, I created a live wallpaper for Android and tried it in my Droid X, Galaxy S, and Fascinate. And I noticed that it runs smootly in Galaxy S and Fasciante but not in Droid X which has lower GPU. My question is, is there anyway to exlude all the devices which has low GPU in Android Manifest? I am planning to publish this live wallpaper soon. Please help me!


回答1:


You can add supports-screens to the manifest, and pass in a true false valuefor each size. The below example would exclude all mobile handsets.

Id imagine a solution to narrow everything down to exactly you want would be similar to this.

<manifest ... >
    <supports-screens android:smallScreens="false"
                      android:normalScreens="false"
                      android:largeScreens="false"
                      android:xlargeScreens="true"
                      android:requiresSmallestWidthDp="600" />
    <application ... >
        ...
    </application>
</manifest>

Other things are available as well such as Density values.

See the Support-Screen Dev Doc




回答2:


You can exclude specific devices when submitting the app to the market. Rather do it there than in the manifest, as it's not possible to specify the required GPU in the manifest, and screen size is not necessarily an indicator of GPU power.



来源:https://stackoverflow.com/questions/7487183/how-to-exlude-all-the-devices-which-have-low-gpu-in-android-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!