Copying data from one file to another file very slow in android?
<p>I am copying data from one file to another file.<br/><br/>
It takes more time. What's the reason?<br/><br/>
My code is here<br/><pre>
    public void copyData( InputStream in, OutputStream out ) throws IOException
    {
        try
        {
            in = new CipherInputStream( in, dcipher );
            int numRead = 0;
            byte[] buf = new byte[512];
            while ( ( numRead = in.read( buf ) ) >= 0 )
            {
                out.write( buf, 0, numRead );
            }
            out.close();
            in.close();
        }
        catch ( java.io.IOException e )
        {
        }
    }
</pre></p>
