Can anyone help me.
I need to convert ppi to android device dpi.
I have gone through some other post in stack overflow but i didnt get the exact answer.
Why iam asking this question is, now iam developing an android app ,when i tested that app in a real device(Samsung Galaxy Grand) it's not good to see the app interface,but when i created an emulator with screen configuration of samsung galaxy grand the app interface is perfect as what i need.
Screen Configuration used in emulator
screen Size:5 inch
Resolution :800 x 480
Aspect Ratio: long
Size :normal(also tested large)
Density: hdpi,mdpi
please anyone help in this issue please
Thank you
I hope this information will be useful
http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/#dimension-units
http://blogs.captechconsulting.com/blog/steven-byle/understanding-density-independence-android
Related
I was just developing an application in android that works with both phone and tablet.
now the problem i am facing is with the icon sizes, if i am using say 28dp for mdpi devices then i came across one issue. In my office we have one 8inch tablet coming under mdpi and 5 inch phone also in mdpi. so both devices uses the same icon with size 28 dp. How to solve this problem?
Same in the case of text size i am facing the same issue. Is der any solution for this? I hav read many documentation so please dont copy paste urls. Kindly help me with exact solution...
I need to create a layout folder for Samsung Galaxy S Duos S7562 phone which display size is 480 x 800 pixels, 4.0 inches (~233 ppi pixel density)
I found the following tutorial for helping layout creation
http://developer.android.com/guide/practices/screens_support.html
Strange thing is there is not any sample for ~233 ppi pixel density
Please advise.
Nexus S is a 4.0 inches 480x800 device and it's a normal screen size device with a hdpi density. So I guess your device has the same setting, but if you would like to know exactly these two values, you can get them programmatically with a sample app as explained here:
How to detect the android screen size programmatically ( the 4 standard sizes)?
Detecting screen density programmatically, pre-Honeycomb
Anyway, since your device should have the most common size, you can start developing your application putting the layout in the "standard" layout folder: please do not provide a layout file for any possible screen size. The link you have posted is anyway a good starting point to read in order to understand how to manage layouts on Android for different devices.
Of course, if you need to, you could think about having a different layout for the landscape orientation (layout-land folder) or for large or greater devices, like Nexus 7 o Nexus 10, using folder layout-sw600dp. The smallest-width qualifier (sw) is available only on Android 3.2 and above.
This is my suggestion and if you have a more specific issue with a layout please come here and someone will help you.
I am currently testing on Android emulators where dpi value remains to be same 320dpi for all sort of emulators where I varied it from 240dpi to 441dpi.I have added a sample screenshot while setting up for 440dpi.Could anyone help me to fix on this.Thank a lot.
hi guys this question may seem to be very simple but really i dont know the answer. All that i need is to stimulate the screen size of this motorola mobile
And i have developed the app in the HVGA Mode in emulator and it is fine but when i change the screen size to 540X960 my app design cuts according to the images that i have... Currently my have my images for 540 X 960 in hdpi... Looking for the better responses...
follow the guidelines which are provided by the android team
http://developer.android.com/guide/practices/screens_support.html
I have to put my Android application in a Galaxy tab. When I installed the app, the resolution of the UI of my application changed. But it's looking good in emulator and other Android 2.2 phones. But in Galaxy tab, the resolution is changed. Please help.
The Galaxy Tab has a pixel density of about 170. That isn't all that different from an mdpi device. (However, Android market apparently classifies it as an hdpi device.)
Are you sure that the problem is with the resolution? It's an extra large screen; perhaps that's causing problems?
I suggest getting device's (Samsung Galaxy Tab) height-width then optimise your resources according to them. Try to find out whether they lie in hdpi/mdpi or ldpi range
You may be required to use new set of graphics for them.