Code example for IOException

Methods: toString

0
 
    // Helper method for cleaning up pics taken during testStressCameraZoom 
    private void cleanupZoomImages() { 
        try { 
            File sdcard = Environment.getExternalStorageDirectory();
            File[] zoomImages = null;
 
            FilenameFilter filter = new FilenameFilter() {
                public boolean accept(File dir, String name) {
                    return name.startsWith("zoom-test-");
                } 
            }; 
 
            zoomImages = sdcard.listFiles(filter);
 
            for (File f : zoomImages) {
                f.delete();
            } 
        } 
        catch (SecurityException e) {
            Log.v(TAG, "Security manager access violation: " + e.toString());