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;
import org.apache.http.message.BasicNameValuePair;

public class Main {
    public static void startAR(Activity activity, Class<?> c, int requestCode, BasicNameValuePair... name) {
        Intent intent = new Intent();
        intent.setClass(activity, c);
        for (int i = 0; i < name.length; i++) {
            intent.putExtra(name[i].getName(), name[i].getValue());
        }
        activity.startActivityForResult(intent, requestCode);
    }
}