Can you safely call "getDrawable" or "decodeResource" on the UI thread in Android
===

i was just wondering, is it bad practice to call "getResources().getDrawable()" or "BitmapFactory.decodeResource()" from the UI thread on android? Im just wondering since I have this situation where I want to show a loding image in my view while I execute a background operation, but Im still calling either one of the above methods... almost every project i look at seems to execute either method on any thread without second thought, but im just looking for best practices.