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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:20:50+00:00 2026-06-16T22:20:50+00:00

Here is my original question I’ve implemented the answer there but still the problem

  • 0

Here is my original question

I’ve implemented the answer there but still the problem persist.

Here is the gist:
So I’m playing a video from external storage(sdcard), I’m having a problem with playing the video and this is my code:

Uri uri = Uri.parse(url);
intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "video/*");

It prompts “Sorry, this video cannot be played”, but in the gallery, it is playable. I printed the url and this is what I got:

VideoPlayer url: file:///mnt/sdcard/foldername/video-2012-12-26-21-26--44.mp4

The file exist from the answer that I got. But still the problem persist, and I have no idea what went wrong.

Any insight is appreciated. Thanks

Edit:To those who didn’t see the answer in the first question. I’ve already implemented this:

intent = new Intent(Intent.ACTION_VIEW);

File sdCard = Environment.getExternalStorageDirectory();
File file = new File(sdCard, "/foldername/video-2012-12-26-21-26--44.mp4");

intent.setDataAndType(Uri.fromFile(file), "video/*");

startActivity(intent);

The file exist since I’ve checked it. I’m wondering if there is a problem with the file naming convention.

Also I’m debugging from my device, Samsung Galaxy Ace, Android 2.3.6, compiling with 4.2 sdk.

Edit 2:
I’ve tried renaming the video into simpler one and now the video works, my guess is that the the file has a filename length limitation or an naming convention.

  • 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-16T22:20:51+00:00Added an answer on June 16, 2026 at 10:20 pm

    I’ve tried different solution. But I guess the problem occurred because of naming convention. I have tried renaming the file into a simpler format and it works. Also the problem with my original file name is that I have a “–” in the file name.

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

Sidebar

Related Questions

EDIT: I figured out the answer to the original YUI3 question I posted here,
My original question I've managed to answer by cobbling other answers together from this
Here is the original question but it is considered to java: Simulate mouse clicks
This question is sort of a follow-up to my original question here . Let's
Ok, here was my original question; Table one contains ID|Name 1 Mary 2 John
My original question can be found here , for which I've gotten some great
I'm using a recipe from the iOS Recipes PragProg book, here's the original portion
I asked the original question here , and got a practical response with mixed
The original question was: Is there a way to declare macros in Python as
This problem comes from easier problem which I managed to solve myself. So here

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.