I have an image in image-view and i want to save image from image-view to gallery or any storage space can anyone tell me how to do this???
Thank you.
Best Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short, you get the bitmap rom the drawing cache:
There are several questions here with answers showing full code:
Android take screenshot via code
How to programmatically take a screenshot in Android?
These are methods of the View class, so they are applicable to any derived one (including ImageView)