Android getResources().getDrawable() deprecated API 22

Well, for developers who use Android Lollipop device for their development while using support library, this issue often raises up. Talk no more, here the solution I found on stackoverflow.

ContextCompat.getDrawable(context, R.drawable.your_drawable)

Happy coding!

Comments

Popular posts from this blog

[PSP] Translation Patch - Toradora Portable

[PSP] Translation Patch - Oreimo tsuzuku disc 1

How to Hide Root from Apps