top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

How to configure device density value in AVD

+1 vote
30 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 Google+ Share Button LinkedIn Share Button Multiple Social 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?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...