I am facing a weird issue, which is already driving me crazy, so ANY help is most welcome and appreciated.
I have created an Android application, which is working quite fine on all kinds of phones and tablets, but on some Galaxy S3 devices, the images are not loaded at all.
Here are the facts, both from myself and information that I gathered from the complaining users of the app:
all images are packaged in the application, in the drawable folder, so accessible from all resolutions
the images are referenced either by mypackage.R.drawable.image_id, or directly via #drawable/image_id in the XML
the images are semi-transparent and are stored in .gif format
there are about 40 images altogether, each is 25x25 pixels, the "largest" is 1.25Kb
for now I have got only complaints from S3 owners
the issue occurs on the standard OS and not on custom roms (at least I have no info about custom roms)
at least one S3 owner, who is facing the issue, claims that his phone is updated to the latest Android version
on many S3 devices the issue is not reproducible and the application works as designed
I am testing my apps on S2, S3, HTC Desire, Sony tablet S and of course the emulator - on all those I am not able to reproduce the issue
I am using FrameLayout, where the main drawing area takes the whole space, the controls (where the images are used) are packed in a LinearLayout, which is floating above
Here is a link to the application on the market:
https://play.google.com/store/apps/details?id=com.rts.android.spacesim&feature=search_result
This is NOT intended as some weird way to promote my app, if you are an S3 owner and decide to check if the issue is reproducible on your device, please write a comment here if it is and if not - what do you observe.
My questions are:
have anyone observed such an issue?
any ideas how to overcome it?
The following links suggest that GIF support might be broken again on 4.1, which most Galaxy S3's are running if I'm not mistaken. My personal phone is a Galaxy S3 at the moment, and I have 4.1.1 on it
GIF doesn't display on Samsung Galaxy Note 2
http://code.google.com/p/android/issues/detail?id=3422
Why not use png?
Related
I have created a fairly simple responsive website and have optimized it for mobile use using the meta tags. It works very well on desktops and on iOS phones and even the Galaxy S5. However, based on some tests using a browser compatibility program, the design falls apart on Android devices using 4.2 or lower (including the Samsung Galaxy S2 through 4, Kindle Fire 2, and Google Nexus). The images (doesn't seem to matter what type of file) will either become very vertically stretched or disappear altogether, no matter the file type. I have tried many things and can find no apparent difference between the images that are displaying and those that are not. Also, my header and footer are no longer where they are supposed to be. From what I can tell, the problem is that Android is not interpreting my css in the same way as ios does.
I have been able to fix the problem somewhat by dictating pixel dimensions for all of the photos instead of percentages, although this messes with the responsiveness of the site. This also fixes my header/footer problem although there is a very large space on the top and bottom of the mobile drop down menu and my logo in the footer (.svg) is distorted despite giving it dimensions.
I can't seem to find any information about this problem so I feel like it has to be an easy fix that I am overlooking.
The website is www.2015housingconf.com.
Thanks in advance!
My Android App is very slow on the Galaxy S4. And for SLOW I mean, 10 - 20 times slower than it is on a Galaxy SII... the weird thing it's that it is fast enough on the S2, galaxy tab 10.1, galaxy note 10.1 and a bunch of other samsung devices; it is perceptibly slower on the S3, and VERY slower on the S4...
It's a big app that uses a lot of animations and loads a lot of images from the assets folder and scales them...
I know that what I wrote it's not very helpful... did somebody get the same issue on some app?
No experience with the specific Galaxy S4. But what you can do to find potential issues is to check the Show GPU overdraw setting in developer settings. It shows areas that are drawn multiple times, which is very slow.
Besides that, check the hierarchy viewer to see if your layout trees are too deep, StrictMode to see if you are blocking the UI thread, and lint to do static code analysis for general problems.
I've found the problem: I don't know why but it slows when it loads images from the assets folder... it works really smooth if I put all those images in the drawable folder. The problem, now, is that i can't do it because my app will download the images from the internet (it will download a zip and put the images in a folder of the application).
Will try something else...
EDIT:
I am now using picasso for android and it works really smooth... recommended!!!
My app runs with many devices but 2 users have send me simular images as below.
As far as I know the behaviour is only seen on Android 4.2.2 (Samsung S4).
On the full HD screen there seem to be 3 compressed tiles of 160x600 pixels.
I have tried an AVD with full HD screen but that fails to start.
On 4.03 devices I don't see this. I don't use tiles.
Does anybody have a hint what or where this goes wrong ?
This looks like a possible bug in the Android platform on Samsung's S4 devices with that particular Android version. My experience tells me that it's a very real possibility. It could also be that you do something wrong in your app that only causes actual problems on that version (and maybe even only on that device), but there is no indication of that from what you tell. Android 4.2.2 should be backwards compatible with 4.0.3, so in general it should work on the later version too, of course.
I would advice you (or anyone in the same situation) to try it out on other devices with the same Android version if possible. Also, double check that you're not violating anything in the Android API documentation.
Please add more info about what you're doing and how if you need more detailed answers. I guess you've probably found a solution or workaround by now, but still adding my answer here.
I hava the following issue - my app is working well on all devices I have, but I have just tried it on Galaxy S3 and I am surprised to see, that all images are... gone. The only image, that is still visible, is the app icon image. On the S3 I have downloaded the app from th market.. and as mentioned - on the other devices it works as expected. The images are statically loaded in xml in image views... nothing fancy...
Any idea what could cause such behavior?
This is the app id in market, if needed (NOT intended to be app advertisement!):
Com.rts.android.tictactoe3d
Thank you!
This was a wired issue, it dissipated after I have updated my S3 to the latest firmware. Before that nothing really helped, I have tried to cleanup the application data, uninstall/reinstall, more the app to the SD or back to phone - same behavior.
It turned out, that GIF image format is not entirely supported in some Android versions, for more information you could take a look at the thread below and a big THANK YOU to Rich for solving the issue!
Images not loading on Galaxy S3
I recently released a game on the Android market. It seems to be working fine for most people, but everyone using a Samsung Galaxy S is reporting the same problem: The graphics for the game are not being drawn on screen (though they appear to be present, sound effects are still generated). The game uses a SurfaceView to draw the various elements from PNG graphics, and everything is scaled so that it will work on any resolution. I don't have a Galaxy S, so debugging is quite hard, can anyone who's had experience developing on a Galaxy S let me know if they found any particular quirks with the device?
try loading the files in a loading screen to memory first and only then play the game.
Samsung Galaxy S GT-I9000 has very slow internal sd card. It is probably due to errors in a file system. Make sure your application does I/O operations on internal sd card only when absoultely neccessary.
Check here for details:
SQLite is extremely slow in Samsung Galaxy GT-I9000