I am trying to make notification to tell me that my CountDownTimer
has ended, But im having some trouble. At the moment i have established just a test notification (i think) But i don't know how to call for the notification to work. Here is what i have at the moment:
public void onFinish() {
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(TestTimer.this);
mBuilder.setContentTitle("Notification Alert, Click Me!");
mBuilder.setContentText("Hi, This is Android Notification Detail!");
TextView timer=(TextView)findViewById(R.id.mTextField);
timer.setText("Seconds remaining: 0 ")
This is called once the timer = 0, and i want to know if its possible to call for a notification when it does.
Thanks in advance for any help, If you need any more code feel free to ask.