开发者

Android Device configuration

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜