I have multiple strings that have to have a certain value to trigger the notification, but I can't seem to find a way to combine them
String wppanswer,tbanswer,ctanswer,ssowpanswer,cppanswer;
if (wppanswer.equals("Yes"))
(tbanswer.equals("Yes"))
(ctanswer.equals("Yes"))
(ssowpanswer.equals("Yes"))
(ssowpanswer.equals("N/A"))
(cppanswer.equals("Yes")){
NotificationCompat.Builder Yes =
new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.adccube)
.setContentTitle("Success!")
.setContentText("YEY! You have everything you need, proceed with work");
int mNotificationId = 001;
NotificationManager mNotifyMgr =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNotifyMgr.notify(mNotificationId, Yes.build());
}
Thank you all in advance, if I need to provide more information, I can do
EDIT I've tried the below threads to no avail