Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.*;
import android.content.*;

public class Main {
    public static AlertDialog newYesNoDialog(Context context, String s, String s1, int i,
            android.content.DialogInterface.OnClickListener onclicklistener) {
        android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(context);
        builder.setCancelable(false);
        builder.setPositiveButton(0x1040013, onclicklistener);
        builder.setNegativeButton(0x1040009, onclicklistener);
        builder.setTitle(s);
        builder.setMessage(s1);
        builder.setIcon(i);
        return builder.create();
    }
}