Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.Activity;

import android.content.Intent;

public class Main {

    public static void pickImage(Activity activity, int requestCode) throws Exception {
        Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);
        intent.setType("image/*");
        // intent.putExtra("return-data", true);
        activity.startActivityForResult(intent, requestCode);
    }
}