Thanks Erel for quick answer. Images are loaded through designer. No code for that images. I can't figure out what happened at v. 2.70 and images has lower quality.
Starting from v2.70 the designer uses a method similar to LoadBitmapSample to load the images. The purpose is to save memory. This change however shouldn't affect the visual result. Can you upload the layout file and images?
I’m using designer. Labels that are set as BitmapDrwable, have “”.png assigned to it with gravity “fill”
On galaxy note, nexus 7 and emulator those labels show low quality
But when run the app in the movilphone, I find "b" objets have a good quality, but the "a" objets have a very poor quality, however with the previus issue of program, it didnot happend
I don't know if this observation helps in troubleshooting but my home screen has 2 images based on orientiation. These images are loaded in the designer script by "image1.image=xxx.png"
When I start the app in portait mode the first image looked fine. If I rotate the phone the landscape image was poor quality and when I rotate back to portrait mode then it also was poor quality.
None of the above was an issue prior to 2.70.
With 2.70 I fixed it by using loadbitmap statements in the activity_resume sub and the images now look fine on all devices from phones to the tablet I tested it on.
But Activity_Resume handles refreshing the image from a new bitmap load each time the orientation changed. Are you saying Create is a better location for this?
I often design the image around 25kb at most, I think is not too much. I have more than 15 gv. elements (layout of bitmapdata), but also I think is not too much, In fact with the previously version it worked, with a great quality and it didnt depend on the size of screen (I mean that I have HTC desire X 4", and Asus transformer 10", and it worked with high quality in both).
Even there is not any messages in the logs about memory issues.
I hope these comments help you. And obviously, thank you very much for your support, as always
If the next issue will have a improvement about that, it will be great
:sign0098:
But Activity_Resume handles refreshing the image from a new bitmap load each time the orientation changed. Are you saying Create is a better location for this?
Activity_Create will be called when there is an orientation change. It will also work if you put it in Activity_Resume, however Activity_Resume is called even if the Activity is just resumed (user presses on the Home button and then returns to your app for example).
For some reason I got the impression that it would only down-res if memory was low. I noticed this on an emulator but didn't think it would happen on a real device. Hopefully nobody will complain until this gets fixed because the main GUI in my app is nothing but high-res graphical buttons.
Would it be possible to also offer an option to NOT automatically do this?
For the record, all of my images are used with the designer... none are loaded through code.