enter Activity For Result - Android android.app

Android examples for android.app:Activity Navigation

Description

enter Activity For Result

Demo Code

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Main{

    public static void enterActivityForResult(Activity activity, Class clz,
            int requestCode) {
        Intent intent = new Intent(activity, clz);
        activity.startActivityForResult(intent, requestCode);
    }/*from w  w w  .  j  a v a 2 s .  c om*/

}

Related Tutorials