如何排除在较低的Andr​​oid设备的GPU? [英] How to exclude devices with lower GPU in Android?

查看:121
本文介绍了如何排除在较低的Andr​​oid设备的GPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/7487183/how-to-exlude-all-the-devices-which-have-low-gpu-in-android-manifest\">How到exlude所有具有低GPU的Andr​​oid清单的设备?


昨天,我创建了一个Android的动态壁纸,并试图在我的Droid X,Galaxy S的,和着迷。而且我注意到,它smootly银河S和Fasciante但不运行在具有较低的GPU Droid X的。到目前为止,我只能消除其中有使用下面的code正常XLARGE屏幕的特定设备。但它并没有明确告诉它是否有更低的GPU。我的问题是,反正是有exlude其他设备以较低的GPU?

 &LT;清单...&GT;
&LT;支持屏安卓smallScreens =false的机器人:normalScreens =false的机器人:largeScreens =false的机器人:xlargeScreens =真
机器人:requiresSmallestWidthDp =600/&GT;
   &LT; /清单&GT;


解决方案

我觉得不能用标准的CPU排除,但你可以用标准的API级别排除

 &LT;采用-SDK安卓的minSdkVersion =整数/&GT;

我知道这是不是很好的解决方案,但你可以假设,如果是更高层次的SDK,该程序将安装在设备较新(这通常意味着更快)去。
我告诉你,这是不完整的解决您的问题,但您可能会发现它很有用。

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> 

解决方案

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.

这篇关于如何排除在较低的Andr​​oid设备的GPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆