android中查看手機系統的OpenGL版本,可以使用如下代碼進行查詢:
ActivityManager?am?=(ActivityManager)?getSystemService(Context.ACTIVITY_SERVICE);?ConfigurationInfo?info?=?am.getDeviceConfigurationInfo();?
info.reqGlEsVersion=?0x00010001?//代表opengles?1.1info.reqGlEsVersion=?0x00020000?//代表opengles?2.0
ActivityManager是Android框架的壹個重要部分,它負責壹新ActivityThread進程創建,Activity生命周期的維護。ActivityManagerProxy實現了接口IActivitManager,但並不真正實現這些方法,它只是壹個代理類,真正動作的執行為Stub類ActivityManagerService,ActivityManagerService對象只有壹個並存在於system_process進程中,ActivityManagerService繼承於ActivityManagerNative存根類。