Android Tablets Forum banner
1 - 7 of 7 Posts

·
Registered
Joined
·
91 Posts
Discussion Starter · #3 ·
Lol yes DPI sorry it must have been a little too early in the morning for me to think coherently. That is the setting I was looking at too. Hopefully the device reports 25.4 because 1 inch = 25.4 millimeters and there is no value in our default.propbasically adding the line ro.sf.lcd_density=133should work.
 

·
Registered
Joined
·
936 Posts
bostwickenator;16985 said:
Lol yes DPI sorry it must have been a little too early in the morning for me to think coherently. That is the setting I was looking at too. Hopefully the device reports 25.4 because 1 inch = 25.4 millimeters and there is no value in our default.propbasically adding the line ro.sf.lcd_density=133should work.
Ya but that's not what you are supposed to do. Apps have a specific DPI they correspond to: http://developer.android.com/guide/practices/screens_support.htmlI don't know how this affects things... Technically 800x480 isn't even officially supported by Android 1.5 either.
 

·
Registered
Joined
·
91 Posts
Discussion Starter · #6 ·
xaueious;17030]Ya but that said:
http://developer.android.com/guide/practices/screens_support.html[/url]I don't know how this affects things... Technically 800x480 isn't even officially supported by Android 1.5 either.
No no that isn't how it works. Say for example I put a textview in my app and I set the font size to 72pt the OS knows that 72pt font is 1 inch high to it calculates the number of pixels on the screen that will be 1 inch high. With the dpi reported at 25.4 it produces the wrong physical size it produces a font that is 25.4pixels high when it should have been in our case 133pixels high. Run robodefence from the marketplace you will see what I mean. This is also used to detect gestures for example you say a finger has to move 2cm on screen to activate a gesture' date=' if the dpi is wrong then the OS might map this to be 1000pixels on a 480pixel wide screen.I can write you an APK that shows this behavior if you want.[IMG']http://img541.imageshack.us/img541/6783/devicex.png[/IMG]top is 72pt middle is 133 pixelsbottom is 25.4mm133/25.4 = 5.2362204724409448818897637795276and as you can see the points and millis are 5.2 times smaller.
 

·
Registered
Joined
·
91 Posts
Discussion Starter · #7 ·
[quote name='Darexius;17074]Tried the DPI setting. Actually made things much worse [IMG]http://www.slatedroid.com/public/style_emoticons/<#EMO_DIR#>/tongue.gif[/IMG] Trying various values' date=' Robo Defense wouldn't even start.[/QUOTE'] Interesting.... maybe it triggers something to do with the system resource loader....
 
1 - 7 of 7 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top