2019-07-10 04:37:52 +03:00
|
|
|
package com.blogspot.developersu.ns_usbloader;
|
|
|
|
|
|
|
|
import android.app.AlertDialog;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
|
|
|
|
public class NsNotificationPopUp {
|
2020-08-03 14:02:24 +03:00
|
|
|
public static void getAlertWindow(Context context, String title, String message){
|
2019-07-10 04:37:52 +03:00
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
2020-08-03 14:02:24 +03:00
|
|
|
builder.setTitle(title)
|
2019-07-10 04:37:52 +03:00
|
|
|
.setMessage(message)
|
|
|
|
.setCancelable(false)
|
|
|
|
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
|
dialogInterface.dismiss();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
builder.create().show();
|
|
|
|
}
|
|
|
|
}
|