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
Jul 16, 2010
I have launcherPro installed and love it. I'm curious if anyone knows what pixel size to use when making custom icons for the dock.
View 2 Replies
View Related
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
Jul 28, 2010
I want to get the color of one pixel of screen
View 2 Replies
View Related
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
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.
View 6 Replies
View Related
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
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
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
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
Mar 31, 2010
I am designing a home screen widget. I ran this widget on a HTC Hero device, which has a screen of 320 pixels * 480 pixels with mdpi. It ran perfect on HTC Hero. The widget takes 3 cells * 2 cells space, i.e. 240 pixels * 200 pixels.Then I ran this widget on a Nexus One device, which has a screen of 480 pixels * 800 pixels, mdpi. Since Nexus One also is mdpi, so I though 240dip is equivalent to 240 pixels on Nexus One and 200dip is equivalent to 200 pixels on Nexus One, so the widget will not take 3 cells * 2 cells space on Nexus One device. To my surprise, when running on Nexus One device, the widget take exact 3 cells * 2 cells, about 360 pixels * 300 pixels, on Nexus One device.I am confused. The layout xml above specifies 240dip in width and 200dip in height for the widget, but why did it take 360 pixels * 300 pixels on Nexus One Device? What am I missing?
View 2 Replies
View Related
Dec 19, 2012
I am programming an app using an absolute layout (@ eclipse). How to fit the button size with the screen size? (I have four buttons per row).
View 1 Replies
View Related
Mar 30, 2010
From Android widget screen guidelines,we know that, home screen has 4*4 cells, and in portrait orientation, each cell is 80 pixels wide by 100 pixels tall. I think these are for baseline HVGA screen. How about for large screens and hdpi screens, do they still have 4*4 cells for widget and each cell in portrait orientation is still 80 pixels * 100 pixels?
View 2 Replies
View Related
Feb 13, 2009
Android screen size (240 x 320 etc) I am developing interactive wallpapers called Badgez.
View 3 Replies
View Related
Jan 17, 2014
I got to know that the devices with screen resolution 1280x720 or 720x1280 are extra large screen devices.
But when I run my application on Samsung Galaxy S3 SGH-T999 (resolution 720x1280) throught eclipse, the following code prints "Normal screen" i.e. it is a normal screen device but according to my knowledge it should print "Extra Large screen". If its a normal screen size device actually then why its picking the layout (XML) file from res/layout-xlarge-port folder instead of res/layout? Need to understand this screen size concept so that I can make my application for multiple screen sizes.
// get and check the screen size of the device
int screenSize = getResources().getConfiguration().screenLayout &
Configuration.SCREENLAYOUT_SIZE_MASK;
switch(screenSize) {
case Configuration.SCREENLAYOUT_SIZE_XLARGE:
Toast.makeText(this, "Extra Large screen",Toast.LENGTH_LONG).show();
break;
[code]...
View 2 Replies
View Related
Nov 17, 2010
how can I get the width and the height of the screen?
View 1 Replies
View Related
Nov 10, 2009
I have an app that I would like to keep 1.5 compatibility but support the additional display resolutions of more recent devices like the Droid. I've read the suggestions in the dev guide, specially the legacy applications section, since that's exactly what I want to do.I'm not running in compatbility mode, so anyDensity is set to true and all screen sizes are allowed in the manifest. I've recreated all my graphical elements so they don't get upscaled on a 480px-width screen (called "hires-bitmaps" in the following).If I put the hires-bitmaps into drawable-hdpi and leave the others in drawable, the emulator2.0 (WVGA854, density @ 240) displays them perfectly. On the other hand, the emulator1.5 (320x480, density @ 160) - and my HTC Hero - ALSO use the hires graphics in drawable-hdpi. That's a problem because the hires graphics scale slightly differently and I don't want the app to resize too much.As mentioned in the dev guide I can prevent this by adding the API version number to the resource folder. Not very convenient since I'd have to keep the hires bitmaps twice (drawable-hdpi-v4 and drawable-hdpi-v5), but I nevertheless tried it. Result: emulator2.0 uses low-res graphics from "drawable" (which is bad), emulator1.5 as well (which is good). And what's weird: emulator1.6 (WVGA854, density @ 240), uses hires-graphics. Now that seems odd.
View 5 Replies
View Related
Oct 15, 2009
is there any solution how recognize screen size?
View 5 Replies
View Related
Nov 26, 2009
What are the different screen size of android mobile?I need mobile screen size & model number of those mobiles.
View 2 Replies
View Related
Apr 28, 2010
I have EditText whose sizes have to be proportional(say 30% of screen size) to the device screen size.I'm new to XML can you please tell me how to retrieve it.
View 2 Replies
View Related
Apr 6, 2010
Here are two screencast of the same screen but in different position.The VerticalScrollBar has not the same size. Do you know what is the problem?
View 2 Replies
View Related
Dec 17, 2009
I want to make my app compatible to different screen sizes. I am right now developing on the Droid and need to know how can I import the screen image on eclipse emulator? I don't have a droid phone but want to make sure my app layout doesn't change on the Droid.
View 2 Replies
View Related
Aug 4, 2010
I am trying to determine the physical size of a screen in inches.
Normally, I could do something like this:
CODE:.............
Then use metrics.widthPixels and metrics.heightPixels. Now that I know the width and height in pixels, I should be able to calculate size in inches if I know the density. Easy enough, metrics.xdpi and metrics.ydpi.
Then screen dimension in inches should be:
CODE:.................
Seems simple enough except that it doesn't work.
On a Motorola Droid, the system reports back: xdpi and ydpi as 96 (which cannot be true).
And the screen resolution as: 480 x 854. Which results in a width of 5" x 8.9" -- which as I'm holding this in my hand right now, I must say - cannot be correct. how to accurately calculate this?
View 12 Replies
View Related
Sep 9, 2009
How can i get the screen size of my emulator? i used
CODE:...............
But it gives me different values each time. How to find the exact value?
View 2 Replies
View Related
Aug 21, 2010
What is the max x, y size of a Android screen in pixels? Is there a standard set by the OS or does it mostly just depend upon the phone hardware.
View 1 Replies
View Related
Mar 19, 2009
How do I get the current screen resolution (width and height)?
View 10 Replies
View Related
Aug 31, 2010
I have xml file that defines some preference screens like the following example, I would like to be able to increase the font size for the text of the preference screen , but because the within a preference screen there is no android:textsize tag , i have no idea how to accomplish that!
<Preference Screen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="root_preference screen" <Preference Screen android:key="general_sett" android:title="general settings" />
<Preference Screen android:key="extras_sett" android:title="extras settings" /> </Preference Screen>
View 1 Replies
View Related
Mar 2, 2009
I am trying to change the screen size of the emulator and see on the site that they tell you what commands to use, but it doesnt' tell you HOW to do it. how I would change the screen size. I believe this occurs on startup. I have eclipse as well, but would rather just shell into it and change it whenever I want.
View 2 Replies
View Related
Nov 21, 2010
Trying to code a simple Live wallpaper for android. I'm having trouble finding out how to capture the screen size at initialization.Any thoughts on how I might can accomplish this?
View 2 Replies
View Related
Nov 8, 2010
The webserver wants to get info like screen size from each mobile handset that browses a webpage. The Javascript functions screen.width and screen.height return wildly inaccurate values.Is there a way for the webserver to detect the screen size of the mobile handset? The client browser is webkit on Android.
View 1 Replies
View Related