how to set a Bitmap to background for a view Android API 10-18?

view full story

http://stackoverflow.com – What I have is: Manifest: <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18" /> source: View view = createViewFromWhatever(); Bitmap bitmap = loadSomethingAddMore(); Everywhere I have searched this is the accepted, suggested: view.setBackgroundDrawable(new BitmapDrawable(bitmap)); But it is Deprecated in API 18. I am terrorised with framework bugs and miss documentations at OS level. I want to respect what they are saying and in case of crash "it is not my fault" I can't even use the new BitmapDrawable(bitmap) and I need new BitmapDrawable(getActivity( (HowTos)