I have been trying to get my local videos (raw folder) to run using
Intent.ActionView. When I create the
Intent and set a data and type then start the activity I get a error. Please look at the following code & error.
I have tried a load of different ways to get to the file thinking maybe it is not being found but I don't think that is the problem. I have tried different video formats but also I do not think that is the problem.
If I use a URL to a MP4 inside
SetDataAndType that will run without an error. Maybe this is a permissions error? At this point I really have no idea. I hope someone will be able to explain the problem I an running into here.
I will attach a basic project (cannot seem to upload a zip with the project, any idea why?) with the code inside that you can run to view the error yourself.
// Create the intent and push the mp4 to it, lets run a video! Intent videoIntent = new Intent (Intent.ActionView); // Video is MP4 format videoIntent.SetDataAndType (Uri.Parse ("android.resource://" + PackageName + "/raw/bunny"), "video/*"); // Crash here, Error: Android.Content.ActivityNotFoundExeception StartActivity (videoIntent);
Little bit of the error:
Android.Content.ActivityNotFoundException: No Activity found to handle Intent
Note: I cannot post the full error in the post, any idea why that is? (comes up with the whole post blank)