File.isFile() returns false while trying to create a file in android from local drive
<p>I tried creating a pdf file into my device out of a file in my local drive. But File.isFile() method returns false.It returns true if i compile the program as a simple java file. Is tht android would not locate a file in the local by reading the path or I/o operations in android are totally different to java i/o.How to make android recognise the file in the path mentioned. Any suggestions? </p>

<pre><code>String path = "D:\\priya_Docs\\Android pdfs\\Professional_Android_Application_Development.pdf";
        File file = new File(path);
        System.out.println("Located a file " + file.isFile());
        String filesArray = file.getPath();
        File getFile = file.getAbsoluteFile();
        FileInputStream fis = new FileInputStream(getFile);
        FileOutputStream fos = (FileOutputStream) openFileOutput(
                "Androiddoc.pdf", Context.MODE_PRIVATE);
        System.out.println("File Created");
        byte[] buff = new byte[1024];
        int len;
        while ((len = fis.read(buff)) &gt;= 0) {
            fos.write(buff, 0, len);
        }

        fis.close();
        fos.close();
</code></pre>
