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 final String EXTRA_FORWARD_INTENT = "forwardIntent";

    public static void onActivityResult(Activity activity, Intent data) {
        if (data != null) {
            Intent i = activity.getIntent();
            i.putExtra(EXTRA_FORWARD_INTENT, data);
            activity.setResult(0, i);
        }
    }
}