Android :: What Ratio Of Dp-to-pixel Change With Screen Density?

Feb 28, 2009

I'm being confused by the 'screen density' concept in Android. I knwe that dpi (dot per inch) came from the printing device. 160 dpi means 160 dots in every inch on the paper. However, when dpi is used for the screen density, for example, what's mentioned '160 dpi screen' in Android document, what's the meaning? 160 pixels on every inch of the display?

As described in http://code.google.com/intl/zh-CN/android/reference/available-resourc..., 1 dip (density-independent pixel) means 1 pixel on a 160 dpi screen. Why does the ratio of dp-to-pixel not necessarily change with the screen density in direct proportion?

When the dpi is changed from 160 to 80, how many pixels will 1dp will take? 0.5?

I can hardly understand why dip/dp is introduced into Android.

Android :: What Ratio of dp-to-pixel change with screen density?


HTC EVO 4G :: Phone Screen Pixel Density?

Jun 9, 2010

A lot of hay is being made over the iPhone4's 326 ppi screen density. I was just curious, for comparison purposes, what's the pixel density of the Evo screen? This would be an easy calculation to do if I knew what the horizontal and vertical dimensions of the screen were, but I can't seem to find that information anywhere.

If anyone knows the pixel density or even just the exact X and Y dimensions of the screen..

View 49 Replies View Related

General :: Allwinner A20 Tv Box - Change Screen Res / DPI / Aspect Ratio - System GUI Always Stops

Mar 23, 2014

I have an Allwinner A20 tv box, I trying to use it on a device with an old, low res, 4:3, 5" screen. It works but I have a few problems - firstly the box has "pal" and ntsc" settings for use with AV out, but when connected the picture is squashed inwards so circles are represented as ovals. I ve tried to mod the aspect ratio/resolution but nothing works, the picture is always distorted.

On top of that everything is too small for the screen, it is readable but things really need to appear bigger, so I also played about with the dpi, this does make things bigger and a better match for the screen, even though the device doesnt actually have a screen itself.

I ve done both these mods with several apps and modding the build prop and I always get "sorry systemGUI has stopped", constantly - when you close it, it opens again straight away. Clearly settings doesnt like these mods, so I m trying to work what I need to change so it DOES accept them.

How I can successfully mod the setting.db and get this working at the correct aspect ratio and a dpi that is suitable for use on a low res screen ?

View 1 Replies View Related

Android :: Randomly Change The Color Of Every Pixel On The Screen

Nov 9, 2010

I want each pixel on the screen to flash between red, blue, green, white, and black but independently of each other. Is this possible? I have been searching everywhere with out any luck. Any help on where to start would be greatly appreciated.

View 1 Replies View Related

Android : How To Support Devices With Normal Screen - High Density Or Low Density?

Nov 15, 2010

I read the official document about supporting multiple screens http://developer.android.com/guide/practices/screens_support.html

According to that document, I should just create different directories for different resolultion.

Now the question. How to support devices with normal screen and high density or low density?

I ask it because, there are two posibilities (WVGA800 (480x800) and WVGA854 (480x854)) and (WQVGA400 (240x400) and WQVGA432 (240x432)) and I don't know where to store some background images for them.

I would take drawable-normal-hdpi or drawable-normal-ldpi, but how to make difference between 480x800 and 480x854 or between 240x400 and 240x432?!

View 1 Replies View Related

General :: Change Aspect Ratio / Resolution On MK802 IIIS?

Apr 24, 2013

I want to use my MK802 IIIS with a projector but I am having aspect ratio/resolution issues. Namely my projector supports 800x600 and 1024x768 but on my Android stick I get chose 1920x1080, 1280x720 or 720x480 (Settings->Display->HDMI modes). The stick has only HDMI output and I am using a cheap chinese adapter to connect it to the projectors vga input. For example with 720x480 I do get the picture but at left side a slice of it is cut off.

Ideal would be if I could set the video output to 1024x768 (with 4:3 aspect ratio).So, how could I change it?

Is there any Xorg like solution, that is, add resolutions by editing some conf file?I should create a custom ROM, build custom firmware...

View 2 Replies View Related

Android :: Moving A Graphic On Different Screen Sizes With The Right Ratio

Apr 4, 2010

I tracked the behaviour of the different screen sizes when I increased the position of a graphic by 10 pixel. Unfortunately happened what I already thought. When the display is bigger, I'm able move a graphic a lot of times more to get to the bottom of the screen. So the ratio between the graphic and its environment is not correct anymore (so not 10 pixel as on normal screen) although the change of the graphic on the different screens looks correct (On big screen it is bigger, on small screens it is smaller). When I move the graphic from the top of the screen to the bottom, I can move that on 480x800 about 65 times, on 480x854 70 times, and on the 320x480 screen only about 25 times. So the target must be to calculate the right ratio so that 10 pixels on the small screen are 17 pixel (or sth. similar) on big screens. What approaches do I have to do that? I already thought about getting the value of res.getConfiguration().screenLayout to know if I have a small, normal, or big size to be able to calculate anyhow the right ratio, but this both seems to be pretty cumbersome and moreover I get values from res.getConfiguration().screenLayout I can't explain. I launched 6 emulator instances and got the following values from res.getConfiguration().screenLayout:

240x320 QVGA low density: 17 320x480 HVGA medium density: 18 480x854 WVGA high density: 34 480x800 WVGA high density: 34 240x400 WQVGA low density: 34 240x432 WQVGA low density: 266435490 (yes, I really get this value!)

This approach seems to be useless because I cannot even distinguish between 480x854 and 480x800, much less of the last value which seems to be corrupt.

How can I solve it to move a graphic on the different screens with the right ratio? How do game developers solve this when they support all screens?

View 5 Replies View Related

Android :: Change 1 Meter To Pixel Distance / API I Can Use?

Aug 2, 2010

When I develop an Android map application, I want to draw a circle on the map whose radius is 1 meter. As you known, I can't draw 1 meter directly, I should convert 1 meter to the distance of two pixels depend on the zoom level. How to I convert it, is there anything API I can use.

Canvas.draw(x, y, radius), what value should I put to this method ?

View 3 Replies View Related

Android :: Faster Way To Set A (PNG) Bitmap Color Instead Of Pixel By Pixel

Nov 22, 2010

I have some png files that I am applying a color to. The color changes depending on a user selection. I change the color via 3 RGB values set from another method. The png files are a random shape with full transparency outside the shape. I don't want to modify the transparency, only the RGB value. Currently, I'm setting the RGB values pixel by pixel (see code below).I've come to realize this is incredibly slow and possibly just not efficient enough do in an application. Is there a better way I could do this? Here is what I am currently doing. You can see that the pixel array is enormous for an image that takes up a decent part of the screen

View 1 Replies View Related

HTC Desire :: Change LCD Density

Oct 4, 2010

Has everyone seen that you can change the LCD density on the Desire? (Well, on all Android handsets really). It simulates a higher resolution, fits more text on screen etc. There's an app on the market which does it, although it won't work on the Desire unless you're S-OFF. All you need to do is extract the build.prop file from /system to your PC (in recovery, use ADB PULL), and using a text editor change the value of LCD Density from original 240 to 200, then ADB push it back and reboot. I'm *really* pleased with the result. Combined with Launcher Pro I've a whole new feel to my phone...

View 8 Replies View Related

Motorola Droid :: MOD Change Your LCD Density

Nov 25, 2010

I don't know if anyone else is as addicted to a 200 LCD density as me but the LCD density changer app was causing FC like crazy. So I thought there had to be another way. It's real easy, and takes 5seconds to do...
1: open root explorer and go to /system
2: open the build prop and locate the line about half way down that says 'LCD density = 240.
3: change the value to 200 and save (it will automatically create a backup in case of a Rom issue)
4: reboot
I'm sure you can copy the build.prop file to your computer and edit and reinsert the file or use astro + god mode script on some Rom. Just be sure to make a backup as root explorer is the only one I know of that makes a backup automatically.You will notice the clock is smaller as well as a host of other great changes. I'm addicted to a smaller size but there are a few issues I've found.

View 6 Replies View Related

General :: Phone Not Booting Due To LCD Density Change

Jun 7, 2013

I have karbonn titanium s5 not a very popular phone. It doesn't have any custom rom.. I rooted it and tried to change lcd density using lcd density modder app from google play phone doesn't boots up anymore.

I see the screen when device turns on then i hear the boot animation but i cannot see the boot animation. I have cwm accesable on the phone and can also boot it into fastboot mode. I have a nandroid backup when the phone used to work but its not restoring it says md5 mismatch.

There's no stock rom for my phone available but i have extracted the system folder from nandroid backup.

View 1 Replies View Related

Android :: Screen Pixel Size

Apr 12, 2010

I need to know how many pixels wide and tall the screen is. I know that there are a bunch of different localization folders that I could make for different views but I just need to know, programmatically, how many pixels are on the screen so I can do some drawing. How can I detect this?

View 4 Replies View Related

Android :: Get Screen Density Programmatically In Droid?

Jul 2, 2010

How to get the screen density programmatically in android?

I mean How to find the screen dpi of the current device?

View 5 Replies View Related

Android :: Specify Different Dimension Of Layout For Different Density Of Screen?

May 14, 2010

Can you please tell me how can I specify dimension of layout for different density of screen?
i.e. the layout are the same across different densities, but some dimension are different.
how can I do that?

View 2 Replies View Related

Samsung : Android Screen Density Compatibility On 1.5

Jun 17, 2010

I'm getting ready to release my first application the marketplace. It's being written for devices running Android 1.5 and above, however there aren't any specific folders for the three different screen densities (I think those came around in 1.6). Should I make these folders myself? Where should I put image resources for the different densities and what should I put in my Manifest?

View 2 Replies View Related

Android :: Extract Color Of A Pixel Of Screen

Jul 28, 2010

I want to get the color of one pixel of screen

View 2 Replies View Related

Android :: Make ImageButton Automatically Scale Based On Screen Density?

Jan 12, 2010

I have an image put on an ImageButton, which looks good on a mdpi (medium-dpi) screen. However, when the device has a hdpi (high-dpi) screen, the image is still pixel-by-pixel accurate, which look small on the device screen.How do I make such that the image (and therefore the ImageButton) scaled based on the density-independent pixels (dp or dip) instead of pixels?

View 3 Replies View Related

General :: Changing Screen Density?

Nov 16, 2012

Due to my changing of the screen density i can't get it via play store. can't see a working link on google either.

View 9 Replies View Related

HTC EVO 4G : Single Stuck Red Pixel On My Screen

Jun 4, 2010

Noticed a single stuck red pixel on my screen... was so excited about the phone that I didn't wanna return it and have to wait a few days for a replacement since all the radioshacks around my area are sold out.

View 24 Replies View Related

Motorola Droid X :: Dead Pixel Or Dust Under Screen?

Jul 22, 2010

note: this is an artist rendition because my digital camera is terrible and i couldn't figure out how to get the dust in the shot. but it looks just like this. it's a black speck under the screen that can only be seen on bright surfaces and only if you are looking at the screen head on. i'm not sure if it might be a dead pixel. i can certainly live with this problem although i'd prefer if it wasn't there.

1. is this a dead pixel or dust?
2. how do i fix this, can i just exchange it at the vzw store whenever they stop being sold out?

View 1 Replies View Related

HTC EVO 4G :: Screen Rotation - Minor Light Leakage And Dead Pixel

Jul 8, 2010

I've had a HTC Evo now for 2/3 weeks, and I love it! But over the last few days it's started to act funny....

What it's doing is lets say I unlock the phone and have it laying on my desk, in the past it would show the screen in portrait orientation....but over the lat 2/3 days its been jumping to landscape and I have to pick up the phone, tilt it to get it back to portrait, and if I lay it back down it will go back to landscape.

This is mainly annoying when checking emails/texts/etc, but also if I am on the train and holding it near my waste, depending on the angle it will bounce back and forth from portrait to landscape!

I originally did a reformat when I bought it, and I am going to do it again shortly to see if that helps....just wondering if anyone else had this problem and if it's fixable (and yes i do want auto rotation)....

My phone has a few other problems such as minor light leakage, and a dead pixel (which I was going to look past and keep the phone)...so if this is something wrong with the hardware it would be a pretty good reason to get a replacement within my 30 days....

View 17 Replies View Related

Android :: Android - Screen Resolution And Screen Density

Sep 27, 2010

As per managing resources(images) in > Android 1.6 version, we need to keep different-resolutions image in Drawable-Hdpi, Drawable-Mdpi, Drawable-Lpi folder particularly.

And as per this page: http://developer.android.com/guide/practices/screens_support.html ,

In Low density section - there are three resolutions used: 240*320 , 240x400 , 240x432 for the Small screen, Normal Screen, Large Screen particularly.

same way for Medium density section - there are three resolutions used: 320x480 , 480x800 , 480x854 for the Small screen, Normal Screen, Large Screen particularly. and same way for High density ........

But i am confused here:

(1) How do i come to know that whether small, Normal or Large screen is used, i mean is there any way to know ?

(2) How do i come to know which type of density i am using ?

(3) And in Drawable-Hdpi, Drawable-Mdpi, Drawable-ldpi folder, which resolution's image we should keep particularly?

View 2 Replies View Related

Android :: Android Multiple Screen Sizes With Same Density

Apr 14, 2010

I'm confused regarding the densities. I see that with medium density, the screen resolution could be either 320x480, 480x800, or 480x854. So if I have an image thats 300px wide in the mdpi folder, how is it going to look the same size on all 3 different screen sizes (mainly 320x480 vs the other 2)? And by look the same size, I mean scale to be bigger or smaller depending upon the screen size.

View 5 Replies View Related

Android :: How To Scale An Image In ImageView To Keep Aspect Ratio?

Mar 26, 2010

In android, I defined an ImageView's layoutWidth to be 'fill_parent' (which takes up the full width of the phone). My question is if the Image i put to ImageView is bigger than the layoutWidth, android will scale it, right? But what about the height? when android scale it, will it keeps the aspect ratio? What I find out is, there is some 'white space' at the top/bottom of the ImageView when android scales an image which is bigger than the ImageView. Is that true? If yes, how can I eliminate that white spaces?

View 3 Replies View Related

Ratio Of Current / Total Installs?

Apr 24, 2014

The ratio of current/total installs for my first app is 0.66 so 33% of users that downloaded my app uninstalled it. Is this good or bad for a productivity app? I have nothing to compare it to.

View 1 Replies View Related

HTC Droid Eris :: Need Size / Resolution / Aspect Ratio For Contact Photos?

Jan 22, 2010

I'm wondering if anyone has figured out yet what the best resolution and/or aspect ratio is for custom contact photos? Most of my contact photos come from Facebook, but some I will edit on my PC and load onto the phone's SD card. I know there are issues with decent photos becoming low-res pixelated, so I'm wondering if I start with the best size and/or aspect ratio, maybe the phone won't have to resample the photos itself.

View 14 Replies View Related

Motorola Droid :: Post Picture I Downloaded As Backround Without Crop It To Standard Ratio?

Jan 14, 2010

Is there a way to post a picture I downloaded as a backround without having to crop it to droids standard ratio? If I didn't have to do that the pictureslooks like it'd be the perfect kind to move over with each og the 3 scrreens

View 5 Replies View Related

Android :: Get Pixel Value From Display?

Jul 14, 2010

I'm not even concerned with the camera per se. I want at the closest thing to the display screen. Meaning: it could even be the desktop the user is looking at, completw w/ the background and the icons she moves back and forth.

Let's say, at time t=1 sec, the app goes to pixel (78, 300) on that display and obtains its value. What may be at (78, 300) could be a portion of the icon or some speck of tree leaf on the photo being used as desktop background.

I'm familiar with BitmapFactory.decodeFile() for getting at the pixel contents of a file. But what about the display?

View 1 Replies View Related

Android :: OpenGL ES Pixel ?

Aug 24, 2009

I am new to Android and OpenGL world. I've created a new ap using openGL ES. The package is attached with this mail. Android Simulator LCD size is 320 x 455 and i've set same size for OpenGL Viewport. But For creating visible rectangle i've to use vertices, which are of very high value.

E.g.

CODE:.....................

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved