Code example for FileNotFoundException

Methods: toString

0
                fos = new FileOutputStream(String.format("%s/zoom-test-%d.jpg", 
                        Environment.getExternalStorageDirectory(), System.currentTimeMillis())); 
                fos.write(data); 
            } 
            catch (FileNotFoundException e) { 
                Log.v(TAG, "File not found: " + e.toString()); 
            } 
            catch (IOException e) { 
                Log.v(TAG, "Error accessing file: " + e.toString()); 
            } 
            finally { 
                try { 
                    if (fos != null) { 
                        fos.close(); 
                    } 
                } 
                catch (IOException e) { 
                    Log.v(TAG, "Error closing file: " + e.toString()); 
                } 
            }