problem in taking screenshots in android by programmatically
问题 in my app i am taking screenshot of the current screen and save it in sdcard. but in the case screenshot is not saved in sdcard. how to take screen shot and send the captured screen shot in email as attachment. please help me. my coding: View v1 = view.getRootView(); v1.setDrawingCacheEnabled(true); Bitmap bm = v1.getDrawingCache(); try { System.out.println("path "+Environment.getExternalStorageDirectory()); FileOutputStream out = new FileOutputStream(Environment.getExternalStorageDirectory()