I've recently published an app in the Android Market. My APK contains icons for res/drawable-hdpi, drawable-ldpi and drawable-mdpi. The icon files are perfectly valid - saved by Adobe Illustrator and show without problems in all browsers, Photoshop, Paint and Paint.NET. Icons are grayscale, but stored in 32Bit PNG.
For some reason, Android Market on phones and Developer Console show a garbled version of the same icon. It looks like my nice gradients are reduced to dotted, black and white mess.
Now, I suspected pngcrush / some similar APK optimisations, but the optimised, 8-bit PNG in the final APK are still perfectly renderable in all browsers etc. Also, the menu on the phone renders it without problems.
Any help appreciated.
ANSWERED:The cause appears to be in the scaling algorithm used by Android Market backend. I've resolved the issue by replacing pure black surfaces RGB(0,0,0) with almost-entirely-black RGB(1,1,1) and the problem's gone away.
The cause appears to be in the scaling algorithm used by Android Market backend. I've resolved the issue by replacing pure black surfaces RGB(0,0,0) with almost-entirely-black RGB(1,1,1) and the problem's gone away.
Related
Good morning,
Yesterday I updated my Android Studio software to the latest version. From now, my app keeps stopping when I run the apk built in the software. I noticed that when I deleted all the images and icons of the app screen the app worked. So I see that when I use: "android:background: #drawable/... " the app will crash in after running the apk. I don't know what happens, because yesterday the app worked very well also with the images or icons in the screen. Please I ask for help, because my app development is now blocked. Thank you so much!
There could be many reasons for this. I would suggest to not keep every image in the drawable folder. Instead, keep them in folders according to their size
ldpi = 240×320 pixels
mdpi = 320×480 pixels
hdpi = 480×800 pixels
xhdpi = 720×1280 pixels
Refer this link for details
In React js app having one folder images use for both app Andorid and IOS. but in IOS PNG images showing alpha transparency issue.
I have opened image in IOS and fix transparency issue:
Open image in Preview app click File -> Export and uncheck alpha
After uncheck alpha its working fine in IOS. But its showing white background in Android. any solution here?
Issue fixed. its due to we have compress icons from tinypng website. due to its showing alpha transparency issue in IOS
While testing our site on different devices we found a problem on recent Android versions. There is a bug with textures under the page, where the content ends (actually there is no any content where appears the bug). The bug appears only when the height of the page zoomed out is smaller then the screen of a device. Previous Android versions (4.1 etc) show there just white space (as Apple and Windows mobile devices also do), but 4.4 and later randomly repeats some portions of the site. We tried different viewport metatag options as well as different "height=100%" and "min-height=100%" tricks in CSS with no result. Any ideas on how we can fix it? Thanks.
Screenshot: http://i11.pixs.ru/storage/7/5/4/2jpg_2263155_16706754.jpg
I'm looking for a system-wide graphic that (I think) is in android.R.drawable. I am looking for this one:
I realize that graphics differ between systems, however I am fairy sure that it is system wide because I have seen it in multiple programs.
I want to use the one Android provides so that my app looks good no matter what phone it runs on. Does anyone know where I can find that image to use in my program?
Taking a look at Android R Drawables, it seems it might be expander_ic_minimized.9
You can find those images in the Android SDK directory under
platforms/android-X/data/res/drawable-Ydpi
where X is the version code of Android and Y is the resolution (l/m/h). Most images are in the mdpi folder.
It is recommended to copy the images to your App, as the Android developers do not guarantee that all images will be there in future releases.
The image you are looking for looks like
expander_ic_minimized.9.png
TOPIC Solved: Answer below.
Some users have been reporting border alignment issues on some android components such as the alert popup or the editTexts. This is happening on the Samsung Galaxy Apollo (200x400) and the HTC Pro Touch (480x640) devices. I cannot replicate that because i don't own those devices and in the Samsung Galaxy S and emulator everything looks just right.
I think that the problem is the dpi or resolution of the device (because the edittext background is a single .9.png so image should look ok); however I am not sure if the supports-screens tag is the solution. Also, application was developed using Api 3 (v1.5) and supports-screens was not yet supported, nor the screen-size resource qualifier.
The style used for the alerts and editText is the phone default. Could the problem be something related with the theme applied to the phone by the user?
Thanks in advance!, I show some images given to me showing the problem:
It might actually be the display density causing this. If you don't provide assets in the appropriate density, the framework will try to rescale your images, including 9patches. Unfortunately there's no real perfect way of resizing 9patches and it can sometimes lead to artifacts, although I would be very surprised if it caused the type of artifact you are seeing.
I've had the same problem and the solution was changing the font size of the TextView from 16px to 17px (or any other odd number).
Well it really was the resolution/density. I managed to create an emulator with the WQVGA density (which needed > Android 1.6) and replicate the error.
The solution is seen on the Supporting Legacy Applications section of the Android Developers webpage: http://developer.android.com/guide/practices/screens_support.html. So a newer version of the API is needed in the project but it still holds support for the 1.5 version.
Thanks.