jump To System Local Pick Image Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System Local Pick Image Activity

Demo Code


//package com.java2s;
import android.app.Activity;

import android.content.Intent;

public class Main {
    public static void jumpToSystemLocPickImageActivity(Activity activity,
            int requestCode) {
        Intent intent = null;/*from  www .  j a v a 2s.c  om*/
        intent = new Intent();
        intent.setType("image/*");
        intent.setAction("android.intent.action.GET_CONTENT");
        activity.startActivityForResult(intent, requestCode);
    }
}

Related Tutorials