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 8289345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:29:17+00:00 2026-06-08T12:29:17+00:00

My application filmed a video and then back to a screen that allows me

  • 0

My application filmed a video and then back to a screen that allows me to choose another video or gallery display videos.
The problem is that the gallery does not display all the videos I record, just one. I’m sure I record the videos because they appear in My Files.

The code used to display the gallery is as follows:

final static int REQUEST_VIDEO_CAPTURED = 1;
    private Uri uriVideo;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.video_list);

        Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);
        intent.setType("video/*");
        startActivityForResult(intent, 1);

            //I also try this
        // Intent intent = new Intent(Intent.ACTION_PICK,
        // android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
        // intent.setType("video/*");
        // startActivityForResult(intent, 1);

            // and this
        // Intent intent = new Intent();
        // intent.setType("video/*");
        // intent.setAction(Intent.ACTION_GET_CONTENT);
        // startActivityForResult(Intent.createChooser(intent, "Select Video"),
        // 1);

    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (resultCode == RESULT_OK) {
            if (requestCode == REQUEST_VIDEO_CAPTURED) {
                uriVideo = data.getData();
                Toast.makeText(VideoList.this, uriVideo.getPath(), Toast.LENGTH_LONG).show();

                ContentResolver res = getApplicationContext().getContentResolver();
                Cursor cursor = MediaStore.Video.query(res, data.getData(), new String[] { MediaStore.Video.VideoColumns.DURATION });
                if (cursor.moveToFirst()) {
                    duration = cursor.getString(0);
                }

                if (uriVideo != null) {

                }
            }
        } else if (resultCode == RESULT_CANCELED) {
            uriVideo = null;
            finish();
        }
    }

I hope you understand, it’s my first question.

Thank you very much!
Sorry for my bad English

  • 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-08T12:29:18+00:00Added an answer on June 8, 2026 at 12:29 pm

    you must request the system to update the media gallery

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

Sidebar

Related Questions

I have three videos: a lecture that was filmed with a video camera a
Application : HTA (therefore IE) This is an application that uses SendKeys to populate
I've an application that automatically fills MS Word templates (.dotx) written using COM and
I have a Silverlight application with a ComboBox that is filled by VideoCaptureDevice 's.
I have an application written in C# that uses Outlook Interop to open a
I have a iframe application, in that app i put a fb like plugin.
I am creating an application that is meant to print out forms meant to
For a web application I'm creating (in Umbraco, but don't think that really matters
I have a web application that uses a couple of PDF forms to create
I have an application that let users export files from a custom template filled

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.