first of all sorry.. but i cant answer in Android take screen shot programmatically cause dont have enought reputation.
The code works fine! thanks.. but.. when i take the screenshot.. the file is stored in the root folder
String extr = Environment.getExternalStorageDirectory().toString();
File myPath = new File(extr, getString(R.string.tituloAplicacion)+".jpg");
but also appears in the Camera DCM folder with another name, its possible avoid that?
Thanks