Android app much, much slower on Galaxy S 4 - android

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!!!

Related

React-native app with many images

Ive got a problem with react native app on android. It's like a gallery, so i need to show many images. First i'm fetching data about urls of images, then i`m trying to render them. Almost all images are downloading, but not all of them. How can i solve this problem? Thanks.
Some images are pretty big, but summary size of them less than 1 gb.
Before asking I was trying to launche app on my Samsung Galaxy s4 and emulated Galaxy s6. On emulated device situation is even more bad.

Images not loading on Galaxy S3

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?

Images not visible on Galaxy S3

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

Galaxy S 3 memory problems

I have a game which does a whole lot of image-scaling (once every time you enter a level). The scaling is done with a simple call to Bitmap.createScaledBitmap(Bitmap). I realize that until the garbage collector comes, I effectively have two copies of these images, but I've tested it to death on several Android devices, and only recently got a Galaxy S3. You would have thought that if a game runs perfectly well on the Xoom2, the Galaxy Tab and the Galaxy S2, to say nothing of lower-end models like the Galaxy Y and Galaxy Ace, it would run even better on the Galaxy S3. Embarrassingly, it doesn't, and all-too-often I run out of memory. I think I've optimized my game about as far as I'm willing to (admittedly, some optimization was called for). I'd like to understand the problem. Does anyone know of any memory-management problems regarding the S3? Is the screen size-RAM ratio worse than on, say, the Galaxy Tab? Thanks in advance.
If you're are scalling imgs you should use .isSampleSize in the BitmapFactory.Options before makes the bpm.

What quirks should I look out for when developing for the Samsung Galaxy S?

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

Categories

Resources