I had worked on an Android application with 2.2 at the beginning. It works properly on a cell phone or tablet with 2.2 or 3.2.
But now I have tried on a cell phone with 4.0.3. There are two issues for which I can’t figure out the solution yet.
-
Out of memory issue : It says out of memory and then crash. I haven’t faced it on 2.2.
In fact, I just set those images in the layout xml. I am not sure what is the differences in 2.2 and 4.0. -
Layout problem. The layout is wrong. I use the xml file to set the image position and size.
I have no idea why it doesn’t work, especially the font size,the numbers in the values part.
They are totally different from what i see at android 2.2
Problem one :
Its not the
2.2 - 4.0issue,but the memory difference in the mobile handsets. With the given information,this is all I can say 🙂 Also have a look at : Avoiding Memory LeaksProblem two :
This is why you recommended to use a
Layoutand NEVER do Absolute positioning (Which I strongly suspect you did) !Have a look at :