Android :: Why Looking For QVGA Resources In The Wrong Order Mdpi - Hdpi - Ldpi
Feb 15, 2010
Im trying to do some testing with a QVGA emulator and I find that it looks for an image resource in the mentioned order.
drawable-mdpi 1st
drawable-hdpi 2nd
drawable-ldpi 3rd (it does get found only after i change the name of the image in the other two dirs for testing)
I would expect it to be ldpi first.
When running other emulators (HVGA and WVGA) they use their appropriate drawable dirs... its only QVGA. The only code that I see could affect this is here (based on the docs)
I have tested this with a 2.0 emulator and a 1.6, i get the same result.
View 2 Replies
Apr 9, 2013
how to resize 9/png images(HDPI/MDPI) to LDPI SIZED?
View 1 Replies
View Related
Aug 26, 2010
All these days i used to test my application on my HTC Legend (2.1 OS) only, and i had all my images resources in drawable-hdpi folder.. and everything worked fine
and today i wanted to test my Application on Android 1.5, so i recreated all the images with lower resolution and kept it under drawable-mdpi folder, so now i have High resolution images in drawable-hdpi folder and lower resolution images in drawable-mdpi folder..
Everything looked great on both the HTC Legend and Emulator(with Android 1.5)
Later i found out that the images in drawable-mdpi are shown in my HTC Legend too and not the images in drawable-hdpi in my manifest file i have also included <uses-sdk android:minSdkVersion="3" /> <supports-screens android:anyDensity="true" />
I want to know as to why the images in drawable-hdpi are not used?
View 2 Replies
View Related
Nov 24, 2010
What is the proper way of sizing the dimensions of an image in a hdpi screen vs a ldpi screen.
For instance, an 89*80 png displays fine, with the text, on my droid 2....but how should I go about resizing the image to be smaller on a smaller screened droid? Do I manually alter the image and place it in the ldpi folder or will it do that automatically?
View 1 Replies
View Related
Apr 29, 2010
I have set up my project with different drawable directories (ldpi, mdpi and hdpi). I have a background png with two different resolutions: 320x480 in drawable-mdpi folder, and 480x800 in drawable-hdpi. Both have the same filename. When I try to load the background as a style in the manifest (using android:windowBackground in the style) if I use the emulator for a 1.6 device, I get the correct one loaded(mdpi). However, if I try this on my Nexus, I see that at first the correct background from the hdpi folder is loaded, but it quickly switches to the mdpi one. I have tried also to set up the background in the layout xml file (android:src=...) but in this case only the mdpi one is loaded. If I delete the mdpi version, everything is loaded ok. Any idea on what is the problem?
View 1 Replies
View Related
Feb 16, 2012
Any app which can mass resize .png from HDPI resolution to MDPI!
I had seen a similar app for MAC but any such application for windows!
View 9 Replies
View Related
Jul 22, 2010
The problem I am having is that when I run a FWVGA or WVGA sized emulator it sometimes runs at a MDPI size instead of HDPI. Here is an example with pictures. I create the AVD with the proper hw.lcd.density setting and screen size and it randomly does this. There doesn't seem to be a pattern. I used to be able to just delete the AVD and create it over again and it would fix itself for a while but now it's getting worse.
View 1 Replies
View Related
Oct 19, 2010
I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ?
View 4 Replies
View Related
Dec 13, 2013
I am trying to move a set of images currently in the resources/drawable-hdpi folder to the Assets folder.
These images are copied to the private application directory when the app is installed.
When I do this the resulting image is smaller than when I had the image in the resources folder. i.e. the baked beans image is smaller than the others. If I load the baked beans images from the drawables folder it is the same size as the other product images.
I have tried to scale the image but it has no effect.
public View getView(int position, View convertView, ViewGroup parent)
{
ImageView imView = (ImageView)rowView.findViewById(R.id.product_thumb nail);
ImageView imProduct = (ImageView)rowView.findViewById(R.id.product_icon) ;
tvName.setText((CharSequence) values.get(position).getName());
[Code]...
View 4 Replies
View Related
Nov 15, 2010
I would like to create different layouts for tablets and for mobile devices in Android. Where should I put the layout resources in order to make this differentiation?
View 2 Replies
View Related
Jun 6, 2010
There is something wrong with my text message inbox. When i receive a text message and reply to it, my message comes up before the one I received even though I sent it after.
View 21 Replies
View Related
Jul 2, 2010
if someone sends me a message, then i send one back. sometimes my message is displayed before their message on the list?
so.
[me]
[them]
[them]
instead of
[them]
[me]
[them]
i think this is due to the timestamp on the 3rd parties phone being a minute or so out.
View 11 Replies
View Related
May 4, 2010
I'm using a desire, which is fantastic but I've got one issue. Using the default music player - just called 'Music' when I play an album the tracks seem to play in a random order. The player seems to be reading tags properly , correct track names and artwork etc and if I look at a tracks properties in the player software I can see that it is reading track number info. I don't know if there is a setting I have got wrong but it would be great to get songs playing in right order. Other than this the Desire is great.
View 8 Replies
View Related
Nov 18, 2010
The issue is with the stock sms app that comes with Android, recently it's been displaying the sms' in the wrong order, for example, this is how the convo went: Me Her Me Her Me Her etc. as one should expect, but it turned out like this: Me Me Her Me Her Her Her. It's not threading the messages correctly, anyone else experiencing this issue?
View 2 Replies
View Related
Jul 22, 2010
I have tried the default music player that is installed with the Droid-X. I've also bought the bTunes player and installed the MixZing player (free version). What is wrong that, by default, all list the tracks of an album in alphabetical order? At least bTunes will let you optionally sort by original track order (although the way given by bTunes is counter-intuitive and you have to start playing a track before you can sort).
By default, all albums should display in original track order. I suppose that for those who have difficulty reading, perhaps an option to list tracks in alphabetical order might be in order for ADA compliance or something. Otherwise, when I browse one of my albums, I want to see it in the order that the original artist intended.
View 14 Replies
View Related
Jul 27, 2009
I have general question about Cupcake (or any other later relase): do you, when writing apps, consider running them on qvga device? although Dianne wrote here http://groups.google.com/group/android-developers/msg/73ded3ba1fe7139e that qvga is not supported i still see in Cupcake sdk qvga skins...
My question is: should i really forget about qvga or not?
View 5 Replies
View Related
Nov 24, 2010
I have developed an application for 1.5 and above which uses expandable list ,but when i test it on 2.1 QVGA emulator expandable list dosent look proper .
Also i have tried running sample Expandablelist1 ,but it also has same issue.
so can anyone tell me is this issue with emulator only?
if yes how to resolve it?
View 1 Replies
View Related
Aug 31, 2010
How can I make it so that my application is seen on the Android Market only by devices with mdpi and hdpi densities. There is the <supports-screens> tag and there is the anyDensity parameter but I don't see how I can say what I want. If I set anyDensity to false, what does that mean? Where do I specify which densities I do support?
View 2 Replies
View Related
Aug 23, 2010
I want to get the width and height of my device to know what type device it is ie QVGA, HVGA ,WVGA.. Also i need to adjust some layouts according to width and height of the screen.
I tried following methods but its not working.
CODE:.........
All these methods return wrong width and height for the 240x320 devices namely Samsung Europa and Alcatel which i have. Width = 320 Height = 240.. This is wierd as some of the critical functionality is getting hampered .. I think this is really a basic thing which shd be correctly provided. Please help me with this issue .
View 5 Replies
View Related
Jul 8, 2010
In android docs, it is said that 140 still is ldpi, but when I change dpi to 140, I find mdpi resource is retrieved, can someone have idea? thanks a lot. btw, I read the code about how to get resource, seems ldpi's max dpi value is 131.25? Does google post the wrong doc?
View 1 Replies
View Related
Jul 11, 2010
In my Android project, I want to loop through the entire collection of Drawable resources. Normally, you can only retrieve a specific resource via its ID using something like:
InputStream is = Resources.getSystem().openRawResource(resourceId)
However, I want to get all Drawable resources where I won't know their ID's beforehand. Is there a collection I can loop through or perhaps a way to get the list of resource ID's given the resources in my project?
Or, is there a way for me in Java to extract all property values from the R.drawable static class?
View 4 Replies
View Related
Jun 2, 2010
I read about in the google documents that the 3 folders corresponds to different screen types and that android would select the image from different folders automatically according to the screen type. I read that WVGA will load from drawable-hdpi and HVGA will load from drawable-mdpi. When I tested with 2 emulators both running 2.1, each with HVGA and WVGA. It turns out that they are both reading the image in mdpi. If I deleted the image in mdpi then they read from hdpi. Can someone answer why emulator with WVGA is reading from drawable- mdpi?
View 4 Replies
View Related
Feb 22, 2010
I have built android 2.1 on freescale's i.MX platform. But after running Gallery3D, it will crash with the log of failed to load resource. I found that the whole drawable-hdpi/ (it really contains in the Gallery3D source code res/) is not in the apk package, and cause lack of drawable-hdpi/icon_cancel.png. The apk only contains drawable-mdpi/ and drawable/. My question is why the drawable-hdpi/ resource is dropped when building apk? Per my understanding is that, which drawable-* resource loading is determined on runtime, and all the drawable-* should be in the apk package.
View 7 Replies
View Related
Jan 5, 2010
I have some 9-patch images on my app, and they work great on the medium density. When I load the app on a High density emulator/device, these images look grainy. It happens only to 9-patch images. The others look great after the pre- scaling. Is there a way to make them look good after the scaling, like the non-9-patch images?
View 10 Replies
View Related
May 11, 2010
I made each image a different color so I can tell if it is loading the right image. When I test my program on different density screens it only chooses the mdpi images. It scales them to match the correct dpi but doesn't choose the right folder. It just defaults to mdpi. In the manifest I have, android:normalScreens="true" android:anyDensity="false"
Anyone have a similar problem? I'm sure it is something simple that I am overlooking but I can't figure it out. From what I read on the Android Support Multiple Screens guide is that you should just have to put the different density images in their correct folders and Android will do the rest.
View 5 Replies
View Related
Apr 16, 2010
Here's my situation: I have an app that's been compiled using 1.5 SDK and minSdkVersion=3. Now I want to add 2 icons: one for high density screens like Droid and another one for low density screens like G1.
For this, I added the high density icon to new directory drawable-hdpi- v4/. I then compiled using 1.6 sdk and added targetSdkVersion="4" to the manifest. minSdkVersion is still 3.
This is working in limited testing, but I'm not sure if I have done everything correctly.
I have many questions:
1. By specifying v4 in drawable-hdpi-v4, the icon will not be displayed to 1.5 or below OS's. But what about users with 2.0 or higher SDK's? Will they get the non-hdpi icon, since they will have v6 or v7 ?
2. The documentation for targetSdkVersion states, "Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility)". Does this mean that my app will not be forward compatible as soon as I specify a targetSdkVersion? What exactly is being turned off?
3. Even if I leave out the targetSdkVersion="4", the app runs ok. So do I really need it?
4. Should I be using the latest SDK (2.1) and setting that as the targetsdkversion and compiling against that? Or some other combination of targetsdkversion and compiling sdk? I'm not using any API's that are not in 1.5..
5. Is any of this related to why some of my HTC Eris users have complained that they can no longer find my app in Market after upgrading to 2.1?
View 3 Replies
View Related
Jul 14, 2012
I am making a ROM. And I'm trying to change the stock icons. I've tried every posssible way but i just can't change them. I'm trying to theme Holo Launcher with custom icons. The icons I have are hdpi. So i don't know how to turn them to mdpi. Is there any way i can turn it to mdpi on my PC. And what are the icons supposed to be renamed as well as which directory am i supposed to place them.
View 1 Replies
View Related
Aug 21, 2012
is there anyway to trick cm9/aokp theme chooser to think that my device is hdpi, instead of mdpi, without lcd density changer hack most HDPI themes, if not all(with the exception to lucid) work on mdpi devices yet theme chooser doesn't allow me and will give me a compiler error.
if the above does not work. is there anything i could change in the theme apk, whether its an xml, or image or anything I could change to make theme chooser think that i am using an MDPI theme, even if the theme includes hdpi images? THE "APPLY HDPI THEMES TO MDPI PAGE, LCD DENSITY CHOOSER PAGE.
View 8 Replies
View Related
Aug 6, 2013
how to port xhdpi roms to hdpi devices? what other steps do we have to take ? im trying to port paranoid android 3.69 to xperia u basing cm 10.1
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