jeudi 5 mars 2015

Do I need to release Bitmap resources?



I made a 2D game in Android studio that uses the Bitmap class to handle .png resources. I've heard about the Bitmap.recycle() method to release resources but is this necessary? If so, should this be done in the surfaceDestroyed() method? Also, what would be the consequences of not releasing these resources?




Aucun commentaire:

Enregistrer un commentaire