[android-developers] Re: intent to play mp4 problems

2010-08-03 Thread Matty
maybe try your intent this way: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(url), "video/mp4"); view.getContext().startActivity(intent); On Aug 2, 4:58 pm, Kyle wrote: > Here is my code that I'm currently using: >         final clas

[android-developers] Re: intent to play mp4 problems

2010-08-02 Thread Kyle
Here is my code that I'm currently using: final class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.endsWith(".mp4")) { Intent intent = new Intent("an

[android-developers] Re: intent to play mp4 problems

2010-08-02 Thread Matty
Are you calling intent.setDataAndType(Uri Data, String Type) ? Sometimes specifying the right mime type makes a big difference. On Aug 2, 1:26 am, Kyle wrote: > Hey, > I've created a WebView which loads a webpage and will play any file > that ends in mp4 on click. The problem is, is that when