Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.AlertDialog;

import android.content.Context;

import android.view.View;

public class Main {
    public static AlertDialog.Builder createAlertDialog(Context context, String title, View dialogView) {
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setTitle(title);
        builder.setCancelable(false);
        builder.setView(dialogView);
        return builder;
    }
}