While reading this class BitmapFactory
I noticed that almost all methods inside are static.
Wouldn’t that cause a memory exception error sooner or later?
Edit* because of another answer I am more curious of another question. Sorry for this
New question:
Would it be good practice to reuse the same class for all activities
through out the entire application?.
Reason being if a bitmap is called in lazyloading where multiple threads are created there will then be a multiple instance of the BitmapFactory classes. Thus, creating multiple Bitmapfactory methods with a return of static Bitmaps.
No, these methods don’t keep data/state whatever, it’s like a box, you give input, you receive result. And that’s all. The only consumed memory will be the class itself which will be done only once.