- Dec 12, 2022
- 357
- 2
I'm using Intent-Receiver to do a task every day at the same time. It work very well.(Thanks to Earl for putting me in right direction!)
Now I'm considering that the user could want to disable this "alarm" if he need anymore. So which is the right way to abort/cancel the intent? my code is strongly based to this example:
[H3]
Attached my test app. I am using two receivers. The main one called MyReceiver is set up to run itself once a minute and display a notification with a counter. Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent) 'Do whatever you need to do. 'StartActivity...
Now I'm considering that the user could want to disable this "alarm" if he need anymore. So which is the right way to abort/cancel the intent? my code is strongly based to this example:
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Attached my test app. I am using two receivers. The main one called MyReceiver is set up to run itself once a minute and display a notification with a counter. Private Sub Receiver_Receive (FirstTime As Boolean, StartingIntent As Intent) 'Do whatever you need to do. 'StartActivity...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید