How to read data from data/data/my_package
<p>I have downloaded a video file into <code>data/data/my_package/video.mp4</code> and now i want to know how i can play this video. I am using Eclipse. Thanks in advance.</p>

<pre><code> DownloadFromUrl("PATH"+videoname.mp4)
{

public void DownloadFromUrl(String fileName) {

            try {
                    URL url = new URL("http://www.bestbusinessplaces.com/animation/admin/Animation/132404046113240392391323340839intelligent_cartridge.mp4-muxed_0.mp4-muxed.mp4"); //you can write here any link

                   File file = new File(fileName);

                   long startTime = System.currentTimeMillis();

                    tv.setText("Starting download......from " + url);

                    URLConnection ucon = url.openConnection();

                    InputStream is = ucon.getInputStream();

                    BufferedInputStream bis = new BufferedInputStream(is);

                    /*

                     * Read bytes to the Buffer until there is nothing more to read(-1).

                     */

                    ByteArrayBuffer baf = new ByteArrayBuffer(50);

                    int current = 0;

                    while ((current = bis.read()) != -1) {

                            baf.append((byte) current);

                    }


                   FileOutputStream fos = new FileOutputStream(file);

                   fos.write(baf.toByteArray());

                   fileOutput.close();
                   fos.close();

                    tv.setText("Download Completed in" + ((System.currentTimeMillis() - startTime) / 1000) + " sec");

            } catch (IOException e) {

                 tv.setText("Error: " + e);

            }

    }
</code></pre>
