Open Source β€’ Background Tasks: Itoo πŸš€

And the sequence is wrong

  • A component does not get created until you touch any of its block.

Taifun

its created when screan1 loaded



this is enhancement version.
2 time picker after time select time show in label , when press ok it send notification on time you select

It looks like you are getting creative... you now not only have an argument x in your main procedure, but also an argument y... this will cause an error as soon as itoo calls your main procedure during creating the process...

instead of y you just could use your global variable time_interval1 directly...

Also as far as I can see the second timer will overwrite the first... so you could just use one time picker...

And you are still ignoring to use the correct sequence

Taifun


its send notification in each second >>> not working well :slightly_frowning_face:

because 1 second is the default timer interval of Clock_master
you might want to set the timer interval to a large value

and why are you still not following the correct sequence? protip: Just do it correctly

  • A component does not get created until you touch any of its block.

btw. you set your global variable timer_interval1 but you never use it
usually procedure Notification is not meant to be called by someone except of itoo while creating the process...

I think it could work as you are doing it, however each new alarm will overwrite the previous one... with just one time picker it should work...

Taifun


i dont know the correct sequence , but the time master is set to disable in design , what can i do to make it work

i set time interval to procedure

initialize global variable time_interval1 to a large value, for example 1000000
the correct sequence is this

Taifun

i change it as you say , but it stop the notification (that was each 1 second )
now its not working

what if i change time interval with if statement to check time and excite procedure

what if you

unknown

Taifun


its not working . the repeat notifications is stop and no notification is show .

which time picker value did you try?
what is the timer interval you got displayed in Label3?
for debugging use logcat

EDIT: for an alarm example with itoo you also can try this

btw. usually you would use the alarmmanager feature of your Android device, which does not require to display a persistent notification... the Android system just will trigger your app at the given time "magically"... you coule use my paid alarmmanager extension for this...

Taifun

thanks for your help , but i need small notification not alarm , if you can i will send aia file to modify it ,
the timepicker i try is first one always but now it doesn't work

the purpose of an alarmmanager is to send a notification at a given time in the future without displaying a persistent notification

read again my previous answer and provide some answers...

Taifun

please try to open it and make what ever you want and send it to me
bgtasksClock (1).aia (153.6 KB)

just for 1 time picker

Unfortunately my free service ends here... I can fix your project and work with your aia file for a small fee... just send me a PM if you are interested in this...

Else check this example as already mentioned earlier

Taifun

A post was merged into an existing topic: Alarm Manager with Itoo