开发者

Android Device configuration

开发者 https://www.devze.com 2023-02-25 01:16 出处:网络
How does android identifie开发者_如何转开发s the device configuration i.e. It has a touch screen, It doesn\'t have a hard key pad and so on... Is there any file from where these properties are loaded

How does android identifie开发者_如何转开发s the device configuration i.e. It has a touch screen, It doesn't have a hard key pad and so on... Is there any file from where these properties are loaded onto the device.


This info can be accessed via Configuration class.

Also your current Activity can get notified about configuration change.


Configuration config = getResources().getConfiguration();
0

精彩评论

暂无评论...
验证码 换一张
取 消