And density detection is done by DisplayMetrics.densityDpi
On Dec 8, 4:58 pm, Chopcsu <[email protected]> wrote: > Ok I have determined half the problem > > Although I was using 480x800(or 854), it still thought it was anormal > size screen with hdpi > > So now im searching for how to detect dpi > > Also a way fornormalhdpi and large mdpi to use the same set of > resources, rather than having to duplicate directories > > On Dec 7, 1:40 pm, Chopcsu <[email protected]> wrote: > > > I am trying to detect if the screen size isnormal, large or small. > > > I am using > > > Configuration conf =view.getResources().getConfiguration(); > > > (conf.screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) == > > Configuration.SCREENLAYOUT_SIZE_NORMAL > > > When testing with the emulator this works for screen sizesnormaland > > small, but large (480x800 & 480x854) > > returns that it isnormal... > > > I have found very little information on using the configuration to > > detect the group, has anyone got any experience with this? > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

