get Local Video via Intent - Android Media

Android examples for Media:Video

Description

get Local Video via Intent

Demo Code


//package com.java2s;

import android.app.Activity;
import android.content.Intent;

public class Main {
    public static final int LOCAL_VIDEO = 4;

    public static void getLocalVideo(Activity ac) {

        Intent intent = new Intent();
        intent.setType("video/*");
        intent.setAction(Intent.ACTION_GET_CONTENT);

        ac.startActivityForResult(intent, LOCAL_VIDEO);
    }//from  w w w. ja  va  2 s.c  o m
}

Related Tutorials