Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BitmapFactory.Options "inPurgeable" method deprecated

Tags:

android

I am new to android programming and I have been doing lots of tutorials all over the internet but I keep bumping into deprecated methods, like for example when I call BitmapFactory.Options.inPurgeable, android studio crosses out inPurgeable, giving message that method is deprecated.

Where do I find alternatives to deprecated methods?

like image 827
Isaac Sekamatte Avatar asked Nov 04 '16 13:11

Isaac Sekamatte


1 Answers

It's deprecated because this flag is ignored starting Lollipop. Also use of it can lead to dropped frames. As documentation mentions - use inBitmap method instead.

like image 88
Maksim Ostrovidov Avatar answered Nov 14 '22 03:11

Maksim Ostrovidov