BitmapDrawable deprecated alternative

Do this instead:

return new BitmapDrawable(context.getResources(), canvasBitmap);

Leave a Comment