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();
精彩评论