Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path to screenshots in Android

Is there a way to find out the path used by android to save screenshots?

Can I get the path from a code?

like image 856
radya Avatar asked Mar 12 '12 12:03

radya


1 Answers

Android's API has no fixed path for screenshots but

File pix = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File screenshots = new File(pix, "Screenshots");

might work. That's what ICS uses as path.

like image 132
zapl Avatar answered Oct 21 '22 16:10

zapl