title: Typeface.createFromFile file not found?
body: <p>Before that I post question and get solution too.But Data stored in data/data/com.customfonts/Robotoo.ttf but its searching file in wrong path and throwing Font not found /data/user/0/com.customfonts/files/Robottoo.ttf</p>
  
  <p><a href="https://stackoverflow.com/questions/45690911/downloading-file-from-url-error-java-io-filenotfoundexception-users-document">Downloading file from url error &quot; java.io.FileNotFoundException: /Users/Documents (No such file or directory)&quot;</a> but I facing file not found exception.Here this my code I have tried.</p>
  
  <pre><code>   //  Storing file 
      private class DownloadingTask  extends AsyncTask&lt;Void,Void,Void&gt;{
      @Override
      protected Void doInBackground(Void... voids) {
          try {
              URL url = new URL(fonturl);
              HttpURLConnection c = (HttpURLConnection) url.openConnection();
              c.setRequestMethod("GET");
              c.connect();
              FileOutputStream fos = new FileOutputStream(new File(getFilesDir(),"Robotto.ttf"));
              Log.i("Download","complete");
              Log.i("File",getFilesDir().getAbsolutePath());
          ( I/File: /data/user/0/com.customfonts/files)//files stores under
              Log.i("FOS",""+fos.toString());
  
              InputStream is = c.getInputStream();
              byte[] buffer = new byte[1024];
              int len1 = 0;
              while ((len1 = is.read(buffer)) != -1) {
                  fos.write(buffer, 0, len1);
              }
              fos.close();
              is.close();
          }
          catch (Exception e) {
              e.printStackTrace();
              outputFile = null;
              Log.e("Error", "Download Error Exception " + e.getMessage());
          }
  
          return null;
      }
  }
  
   btnGETDATA.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
           String filename="Robottoo.ttf";
           getTypeface(filename);
           }
      });
     private Typeface getTypeface(String filename)
     {
       Typeface font;
          try
          {
              font = Typeface.createFromFile(getFilesDir().getAbsolutePath() +"/"+filename);
              Log.i("FOnt found",""+font);
             (java.lang.RuntimeException: Font not found /data/user/0/com.customfonts/files/Robotoo.ttf)
          }
          catch (Exception e)
          {
              e.printStackTrace();
              return null;
          }
          return  font;
     }
  </code></pre>
  
  <p>java.lang.RuntimeException: Font not found  /data/user/0/com.customfonts/files/Robottoo.ttf </p>