How to exclude devices with lower GPU in Android? [duplicate]

最后都变了- 提交于 2019-12-08 14:10:52

问题


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

Yesterday, 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. So far I can only eliminate a specific devices which has normal-xlarge screen using the code below. But it does not specifically tell whether it has lower GPU. My question is, is there anyway to exlude other devices with lower GPU?

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

回答1:


I think you can not exclude by criteria CPU but you can exclude with criteria API level

<uses-sdk android:minSdkVersion="integer"  />

I know this is not well solution but you can go with assumption that if the is on higher sdk level that the program is installed on device that is newer (which usually means faster). I told you this is not complete solution to your problem but you might find it useful.



来源:https://stackoverflow.com/questions/7487669/how-to-exclude-devices-with-lower-gpu-in-android

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