How to change black background color of bitmap to transparent?

Viewed 15302

I am creating Bitmap using following code:

Bitmap bm= Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);

But I want to change Background color from black to transparent because I want to use this object in another Activity also. I searched a lot but I am unable to find solution. Please help. Thanks in advance.

2 Answers
Related