Manjunath G
Manjunath G

Reputation: 11

Android Device configuration

How does android identifies 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.

Upvotes: 0

Views: 270

Answers (2)

Mark
Mark

Reputation: 18877

Configuration config = getResources().getConfiguration();

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

This info can be accessed via Configuration class.

Also your current Activity can get notified about configuration change.

Upvotes: 3

Related Questions