Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
System.gc();
              Intent i = getIntent();
              Bundle extras = i.getExtras();
              filename = extras.getString("videofilename");     
            
            
              if(null!=filename)
              {
            	  Uri uri=Uri.parse(filename);
        	videoPlayer = (VideoView)this.findViewById(R.id.videoView);
        	videoPlayer.setOnCompletionListener(this);
            videoPlayer.setKeepScreenOn(true);
            //videoPlayer.setVideoPath(filename);
            videoPlayer.setVideoURI(uri);
            videoPlayer.setMediaController(new MediaController(this));
            videoPlayer.requestFocus();
            videoPlayer.start();
              }
              else
              {
            	  Toast.makeText(this, "Error", 100).show();
            	  finish();
              }




i want to play a video from another files browser. "
videofilename
" i have used this key to get the path for the path of the video file. what actually i can use in place of this key. what is the method to retrieve the key having a value of the path to the video file.

here i am using the ASTRO file manager.

please anyone help me.

thanx in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900