Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; import android.support.annotation.NonNull; public class Main { /** * start for result * */ public static void startResult(@NonNull Activity activity, int requestCode, @NonNull Intent intent) { activity.startActivityForResult(intent, requestCode); } }