Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7772637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:55:53+00:00 2026-06-01T16:55:53+00:00

I have build an app that has videos in it that stream from the

  • 0

I have build an app that has videos in it that stream from the Internet and I’m not very impressed with the performance of them. Would anyone like to share the code for loading videos from the SD card.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:55:54+00:00Added an answer on June 1, 2026 at 4:55 pm

    I hope this code help u

    public class video extends Activity{
    
        VideoView video_view;
        String ex_name;
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
    
            super.onCreate(savedInstanceState);
            setContentView(R.layout.eccryption);
            video_view = (VideoView) findViewById(R.id.videoView1);
    
            ex_name = getIntent().getExtras().getString("video_name");
    
            MediaController mediaController = new MediaController(this);
            mediaController.setAnchorView(video_view);
            video_view.setMediaController(new MediaController(this));
            handler.sendEmptyMessage(1);
    
        }
    
        Handler handler = new Handler(){
    
            public void handleMessage(Message msg){
    
                int pos=msg.what;
                if (pos == 1){
    
                    video_view.setVideoPath(Environment.getExternalStorageDirectory()+"/"+ex_name+".mp4");
                    video_view.requestFocus();
                    video_view.start();
    
                    Log.d("Before Video Finish", "i m in before video finish");
                    video_view.setOnCompletionListener(new OnCompletionListener() {
                        @Override
                        public void onCompletion(MediaPlayer mp) {
                            finish();
                        }
                    });
                }
            }
        };
    

    Use this Code This Code,My dear friends !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an idea for an app that I would like to build which
I have to build an iPhone app that every X days has an online
I'm trying to build an app (first one) that has webview. I have used
We have an app that has crashed on armv6 iOS devices coming from the
We have build an app. A company has bought an customized version of that
I build an app that has to do a certain task with very high
I have built a Facebook app using the Javascript SDK that has been up
I have a client that has an app built with django. On every page
We have multiple config files (app.DEV.config, app.TEST.config, etc) and a pre-build event that copies
I have built an app that works only when not run as a Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.