Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    /**
     * Launch an intent in the CATEGORY_DEFAULT.
     * @param activity The activity to launch from
     * @param intent The intent to launch
     */
    public static void launchDefaultIntent(final Activity activity, final Intent intent) {
        intent.addCategory(Intent.CATEGORY_DEFAULT);
        activity.startActivity(intent);
    }
}