title: Trying to check if a file exists in internal storage
body: <p>The following code is how I am trying to identify if a file exists in the internal storage, <code>MODE_PRIVATE</code>.</p>
  
  <pre><code>public boolean isset(String filename){
      FileInputStream fos = null;
      try {
         fos = openFileInput(filename);
         //fos = openFileInput(getFilesDir()+"/"+filename);
         if (fos != null) {
           return true;
         }else{
           return false;
         }
      } catch (FileNotFoundException e) {
          return false;
      }
  
      //File file=new File(mContext.getFilesDir(),filename);
  
      //boolean exists = fos.exists();
      }
  </code></pre>
  
  <p>However, it goes into the exception and doesn't continue with the code. It doesn't do the return. Why?</p>