mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
AlamrManager code
This commit is contained in:
parent
466f42e8a8
commit
890b00722c
1 changed files with 16 additions and 0 deletions
16
app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java
Normal file
16
app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java
Normal file
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue