get Local Video via Intent - Android Intent

Android examples for Intent:Picture Pickup

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  ww  . ja  va  2 s. c o  m
}

Related Tutorials