0

Hello I have trouble with manage notification

I have app with control weather in some place (when change I want build notification) one a day control it's okay, for example on 10:00 and ecery day, If I can run one methot/activity/class for control weather and launch notification if need..

I have only simple notofication from developer android. and I have troubble for find some "advice" with my problem.. i find some with use firebase, but thing so it's not for me.

Thanks

Parad0X
  • 3,634
  • 2
  • 12
  • 23

1 Answers1

0

You need to use a Service (which is basically an Activity without an interface). They have a Context and you can send notifications from there.

Have a look here.

MSpeed
  • 8,153
  • 7
  • 49
  • 61
  • I try this https://www.dropbox.com/s/o8jxaowbi6wpot5/NotificationBySchedule.zip?dl=0 from yours answer but I thing not work, I launch app and press start, ok ... and first notofication ok.. I exit app from RAM too and notification not... – Parad0X Jul 03 '17 at 22:23