Skip to content Skip to sidebar Skip to footer

Android App 2.2 Port To 4.0

I have built an application based on 2.2.It works properly and does well. However, when i put the application on the 4.0(with resolution 1280x800 Samsung Galaxy Note). It crashes a

Solution 1:

Try placing your images in corresponding drawable folders such as drawable-mdpi, drawable-hdpi and so on.

if you only have one version try putting them in drawable-nodpi. You might need to select which ones to put in nodpi depending on how your layout is setup.

when a xhdpi or hdpi device loads drawables from drawable or drawable-mdpi, the system automatically enlarged the resource to match the dpi. from mdpi to xhdpi the drawable will be resized to 2x the size and 1.5x for mdpi to hdpi.

hope this helps :)

Post a Comment for "Android App 2.2 Port To 4.0"