Use file downloaded (Video)
<p>I made an application in which a video below ..</p>

<p>want this same application view the video ... most of the error</p>

<p>"This video can not be displayed"</p>

<p>I think I'm missing folders on android</p>

<p>The video should not necessarily be seen when I downloaded ... may be seen later, the next day</p>

<p>The video is stored perfectly within my unit</p>

<p>another thing, my device does not have sd card</p>

<p>tracking code</p>

<p>//view video...</p>

<pre><code>  vd = (VideoView) findViewById(R.id.videoView);

     vd.setVideoURI(Uri.parse(("/mnt/sdcard/MeuAPP/" + name_file_video)));
     vd.setMediaController(new MediaController(this));
     vd.requestFocus();
     vd.setOnPreparedListener(new OnPreparedListener() {
         public void onPrepared(MediaPlayer mp) {
             vd.start();

         }
     });
</code></pre>

<p>//donwload video</p>

<pre><code>             URL url = new URL(file_url[0]);
            URLConnection conection = url.openConnection();
            conection.connect();
            int lenghtOfFile = conection.getContentLength();

            InputStream input = new BufferedInputStream(url.openStream(), 8192);
            //InputStream input = new BufferedInputStream(url.openStream());

            //Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).mkdirs();

            OutputStream output = new FileOutputStream(Environment.getExternalStoragePublicDirectory("/MeuAPP/" + name_file_video));


            byte[] data = new byte[8192];
            //byte[] data = new byte[1024];

            while ((count = input.read(data)) != -1) {   
                output.write(data, 0, count);
            }

                output.flush();             
             output.close();
            input.close();
</code></pre>
