From 890b00722cdef83fde2a245b6a3af68ecf8da5a6 Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 22 Jan 2021 21:17:23 +0100 Subject: [PATCH] AlamrManager code --- .../java/net/foucry/pilldroid/AlarmReceiver.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java diff --git a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java new file mode 100644 index 0000000..44d9312 --- /dev/null +++ b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java @@ -0,0 +1,16 @@ +package net.foucry.pilldroid; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.widget.Toast; + +public class AlarmReceiver extends BroadcastReceiver { + + @Override + public void onReceive(Context context, Intent intent) + { + // Show the toast like in above screen shot + Toast.makeText(context, "New stock calculted", Toast.LENGTH_LONG).show(); + } +}