當前位置:編程學習大全網 - 網站源碼 - 如何查看android系統的openGL版本

如何查看android系統的openGL版本

android中查看手機系統的OpenGL版本,可以使用如下代碼進行查詢:

ActivityManager?am?=(ActivityManager)?getSystemService(Context.ACTIVITY_SERVICE);?

ConfigurationInfo?info?=?am.getDeviceConfigurationInfo();?

info.reqGlEsVersion=?0x00010001?//代表opengles?1.1

info.reqGlEsVersion=?0x00020000?//代表opengles?2.0

ActivityManager是Android框架的壹個重要部分,它負責壹新ActivityThread進程創建,Activity生命周期的維護。ActivityManagerProxy實現了接口IActivitManager,但並不真正實現這些方法,它只是壹個代理類,真正動作的執行為Stub類ActivityManagerService,ActivityManagerService對象只有壹個並存在於system_process進程中,ActivityManagerService繼承於ActivityManagerNative存根類。

  • 上一篇:HTML代碼和CSS代碼有什麽區別
  • 下一篇:在oracle數據庫中怎麽樣把1234567890的阿拉伯數字轉換成壹二三四五六七八九零 最好有源碼謝謝
  • copyright 2024編程學習大全網