michael
michael

Reputation: 110570

Android resource loading

Does android all deflate images in the apk when it first runs?

For example, I have different .pngs in a drawable directory. When does android deflate images and load them in memory?

Does it only do it when I execute the code like:

imageView.setImageResource(R.drawable.myimage)

Upvotes: 0

Views: 327

Answers (1)

Mircea Nistor
Mircea Nistor

Reputation: 3260

Yes, that's exactly when they get "deflated", whenever you reference an drawable resource from R.java.

Upvotes: 1

Related Questions