Gorets
Gorets

Reputation: 2442

Android background

In my app I used a background image - 480x800, size - 464kb, but when I trying to run it in emulators with api <15 I had a OOM errors, but if I run it without background all works well. Maybe anyone has some solutions of this? Or some recomendation to work with background?

Upvotes: 1

Views: 240

Answers (1)

user1556566
user1556566

Reputation:

As @Ram kiran said

use drawable-xhdpi for keeping large size images.

for coming to images with the size 480x800 have different look in portrait and landscape,

so its better to use

  drawable-port-xhdpi for portable images 

(and use )

 drawable-land-xhdpi for landscape image

Read thsis for more clarification

Upvotes: 1

Related Questions