Hello, I'm having problems with the fact that getDrawable
is deprecated. Why, how can I convert my code so that it can be updated? Thank you in advance!
int height = 100;
int width = 100;
BitmapDrawable bitmapdraw=(BitmapDrawable)getResources().getDrawable(R.mipmap.guardian_ico);
Bitmap b=bitmapdraw.getBitmap();
Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);