android - Get screen size bucket programmatically? -


I want to determine whether the current device has a small, medium, large or bigger screen in the code. I have not found anything in the SDK docs which will help me get it into that information. I have only given full value to all the methods / sections (i.e. the screen size, screen density, etc. in pixels)

Is there a way to tell what type of screen I'm running on the code?

I have finished using the bool resources given in various bucket folders. Have given . I just needed to differentiate between normal (small / medium) and large (large / large) screens, so I did this:

value / bools.xml

    

Value-Large / bools.xml

    

Then, I can tell whether the screen is big or not. In this way up to 100% of the platform determines which device the device is on.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -