cindy wrote:
> I want to call INTENT_VIEW to play a local video:
> private void doPlayCurrentVideo() {
> mCurrentVideoUri=Uri.parse(mCurrentVideoFilename);
> Intent intent = new Intent(Intent.ACTION_VIEW,
> mCurrentVideoUri);
> try {
> startActivity(intent);
> } catch (android.content.ActivityNotFoundException ex) {
> Log.e(TAG, "Couldn't view video " + mCurrentVideoUri, ex);
> }
> }
>
> but I got exception "ActivityNotFoundException", How can I fix it?
Install an application that responds to that Intent.
There is no video player on Android by default, AFAIK. However, there
may be third party video players that will honor your request, depending
on what mCurrentVideoFilename is.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Need Android talent? Ask on HADO! http://wiki.andmob.org/hado
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---