title: Accessing FAT32 and NTFS format USB Pendrive from android tablet
body: <p>We have a USB port in our android tablet(version 4.0.3).</p>
  
  <p>Pendrive File Systems Format are</p>
  
  <ol>
  <li>NTFS</li>
  <li>FAT32</li>
  </ol>
  
  <p>When Pendrive File Systems Format are <code>FAT32</code> File has been created Successfully. But When File Systems Format are <code>NTFS</code>, I got the Error Message as <code>open failed: EACCESS (Permission denied)</code>.</p>
  
  <p>I Need to create a New File from in the USB Pendrive. I have tried my sample code is</p>
  
  <pre><code>Button createFile = (Button) findViewById(R.id.createFile);
  createFile.setOnClickListener(new OnClickListener() 
  {
      public void onClick(View v) 
      {
          try 
          {
              File root = new File("/mnt/usbhost1");
              Runtime.getRuntime().exec("chmod 777 " + root.getAbsolutePath());
              File myFile = new File(root,"createNew.txt");
              myFile.createNewFile();
              Toast.makeText(getBaseContext(), "Done Creating File", Toast.LENGTH_SHORT).show();
          } 
          catch (Exception e) 
          {
              Toast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_SHORT).show();
          }
      }
  });
  </code></pre>
  
  <p>Here <code>/usbhost1</code> is a Android tablet USB Path. Where I am mistaken. How to create a New File from in the <code>NTFS</code> File Systems Format.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Regards<br/>
  Bala</p>