Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Intent; public class Main { public static Intent getCropIntent(Intent intent) { intent.putExtra("crop", "true"); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("outputX", 320); intent.putExtra("outputY", 320); intent.putExtra("return-data", true); return intent; } }