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 void startActivityWithNoData(Activity start, Activity from, Class<Activity> end) {
        if (start == null || from == null || end == null)
            return;
        Intent intent = new Intent();
        intent.setClass(from, end);
        start.startActivity(intent);
    }
}