top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to configure device density value in AVD

+1 vote
455 views

I am trying to support two devices with different densities one is 220dpi and other is 190 dpi. So when I create new AVD definitions from AVD manager, there is no option to specify the density values. I am asking this because my dimen.xml, layout xml's would differ based on these device densities. So any one has tried before defining the device densities on emulator/avd.

posted Aug 29, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

You can change the device density in the particular AVD's config.ini file. The property name that you'd have to change is "hw.lcd.density". On Windows 7, the default configuration file path is C:Users.androidavd

answer Aug 29, 2013 by Sonu Jindal
I tried this thing and later while testing on avd i found that it was still showing me the density as 160 whereas i added value as 185. So other than config.ini do we have to modify in some other areas ?
Changing the config file should have done the job. Did you make sure that you changed the config file of the same emulator that you tested?
Similar Questions
+2 votes

I am writing a messaging app in android studio. When I hit the send button it should show me the option to select a sim card if the device has dual sim. If not it should not show the dialog box and should select the default by its own. What should be used for this scenario?

...