A Asim A Baki Active Member Licensed User Longtime User Nov 18, 2017 #1 I need to multi schedule execution for a sub directory with a different parameter to be executed in accurate time this is not a service, it is just a sub routine
I need to multi schedule execution for a sub directory with a different parameter to be executed in accurate time this is not a service, it is just a sub routine
KMatle Expert Licensed User Longtime User Nov 18, 2017 #2 Asim A Baki said: this is not a service, it is just a sub routine Click to expand... It's very simple to move that sub to a service. You can use "ServiceStartAtExact". Using it in an activity (e.g. with a timer) will cause problems as the activity will pause when the user presses the home button (= when it is not "visible"). Work with partial lock/Wake state (use the search for that). Upvote 0
Asim A Baki said: this is not a service, it is just a sub routine Click to expand... It's very simple to move that sub to a service. You can use "ServiceStartAtExact". Using it in an activity (e.g. with a timer) will cause problems as the activity will pause when the user presses the home button (= when it is not "visible"). Work with partial lock/Wake state (use the search for that).
A Asim A Baki Active Member Licensed User Longtime User Nov 18, 2017 #3 Would this allow me to schedule multiple times? Upvote 0
mangojack Expert Licensed User Longtime User Nov 19, 2017 #4 Asim A Baki said: Would this allow me to schedule multiple times? Click to expand... Yes ... This might get you started scheduling your tasks .. https://www.b4x.com/android/forum/threads/65041 Upvote 0
Asim A Baki said: Would this allow me to schedule multiple times? Click to expand... Yes ... This might get you started scheduling your tasks .. https://www.b4x.com/android/forum/threads/65041
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2017 #5 Note that StartServiceAt can only be used for a single schedule. This is why you need to schedule the next task each time. Upvote 0
Note that StartServiceAt can only be used for a single schedule. This is why you need to schedule the next task each time.