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

  • Home
  • SEARCH
  • 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 6171237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:10:41+00:00 2026-05-23T23:10:41+00:00

Last week I published app, this app contained just video links that allows the

  • 0

Last week I published app, this app contained just video links that allows the users to watch clips whenever they click any button link.

I am using this code to play video:

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setDataAndType(Uri.parse("http://www.yourvideo.mp4"), "video/mp4"); 
view.getContext().startActivity(intent); 

However, in some cases this code doesn’t work in several devices, some users of my app said it force closes the entire app whenever they press any link. I actually tried it on my Droid X, it worked perfectly fine.

Is there anything I am doing wrong? Please help me, I would really appreciate it a lot.

Here is the error I am getting.

    android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW 
    dat=http://www.yourvideos.mp4 typ=video/mp4 }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
    at android.app.Activity.startActivityForResult(Activity.java:2817)
    at android.app.Activity.startActivity(Activity.java:2923)
    at com.MyApplication.desc182$1.onClick(desc182.java:34)
    at android.view.View.performClick(View.java:2408)
    at android.view.View$PerformClick.run(View.java:8816)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4627)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
    at dalvik.system.NativeStart.main(Native Method)
  • 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-05-23T23:10:42+00:00Added an answer on May 23, 2026 at 11:10 pm

    I had the exact same problem and never found a good reason why this happens. I ended up just catching ActivityNotFoundException and showing a dialog.

    Here’s a way you can tell if there’s an activity that can handle a particular intent:

    private boolean checkCanOpenVideoMP4Url(String videoUrl) {
        Intent intent = new Intent(Intent.ACTION_VIEW); 
        intent.setDataAndType(Uri.parse(url), "video/mp4"); 
    
        List<ResolveInfo> resolveInfo = getPackageManager().queryIntentActivities(intent, 0);
    
        return (resolveInfo.size() > 0);
    }
    

    You can use this approach to see if the intent can be handled, and then message the user appropriately if there is no activity that can handle a particular intent.

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

Sidebar

Related Questions

I just began using Mongoid last week. I am running into this association problem
I'm a student and just started learning C++ last week so this question is
First thing you should know is that this worked on Wednesday of last week
I was writing some Unit tests last week for a piece of code that
Given a week-day (1-7), how can I calculate what that week-day's last date was?
With help from the community last week, I successfully implemented this code here Now
Last week this worked but now, for some reason I can only use Model.first.
Last week I learned that Silverlight on the Windows Phone uses a compositor thread
last week, I integrated successfully twitter with my small rails app. If I create
Last week, we created a program that manages sets of strings, using classes and

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.