I want to add some text on top of an image. I read the image from the sd card and set it to a Bitmap variable.
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
Then I added it to a canvas. The code I used is given below,
Canvas c = new Canvas(myBitmap);
But when I added this line, the app crashed at that point. Why is it and how can i solve this ??
Note : Above mention code lines are inside onActivityResult
method.