Reputation: 982
I want to add image name (text) on image which I am getting from camera or gallery?, I have tried some solution like by Canvas or Using XML file, but I want more feasible solution
Upvotes: 0
Views: 59
Reputation: 4705
Here is the one of best watermark library which help you do your task
https://github.com/huangyz0918/AndroidWM
They also provide different mechanisam to add watermark on your image.
Upvotes: 1
Reputation: 129
Simply take relative layout in XML and add Textview and ImageView .
Now get the Image name from below code you can use the substring method to get the name of the file from the path string.
String path=":/storage/sdcard0/DCIM/Camera/1414240995236.jpg";
// it contains your image path...I'm using a temp string...
String filename=path.substring(path.lastIndexOf("/")+1);
Upvotes: 0