
Update notification priority: no sound on modern devices when notification icon appears (in case it's not fixed for end user - application should bre re-installed) Update games pattern image to be even more awesome Make application theme to be applied based on user's choice when application starts. Made disable buttons looks disable again!
15 lines
547 B
Java
15 lines
547 B
Java
package com.blogspot.developersu.ns_usbloader;
|
|
|
|
import android.app.AlertDialog;
|
|
import android.content.Context;
|
|
|
|
public class NsNotificationPopUp {
|
|
public static void getAlertWindow(Context context, String title, String message){
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
|
builder.setTitle(title)
|
|
.setMessage(message)
|
|
.setCancelable(false)
|
|
.setPositiveButton("OK", (dialogInterface, i) -> dialogInterface.dismiss());
|
|
builder.create().show();
|
|
}
|
|
}
|