Get System Gallery - Android Intent

Android examples for Intent:System Gallery

Description

Get System Gallery

Demo Code


//package com.java2s;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;

public class Main {
    public static void sysGallery(Context context, int resultCode) {
        Intent i = new Intent(
                Intent.ACTION_PICK,/*from www. j a va  2s. com*/
                android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
        ((Activity) context).startActivityForResult(i, resultCode);
    }
}

Related Tutorials