Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.cloud101.windows;
- import android.app.Activity;
- import android.app.AlertDialog;
- import android.content.DialogInterface;
- public class Alertwindow {
- public Alertwindow(Activity activity,String message){
- AlertDialog.Builder builder = new AlertDialog.Builder(activity);
- builder.setMessage(message)
- .setCancelable(false)
- .setPositiveButton("Ok", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- dialog.dismiss();
- }
- });
- AlertDialog alert = builder.create();
- alert.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement