J jerryjukem Member Licensed User Longtime User May 6, 2018 #1 I am trying to use startserviceexacttime...i am starting in starter module, but is it unclear what is needed in the "service as object". I have tried "main" which does not work...the examples are "do something"..could someone explain what that is reference to.
I am trying to use startserviceexacttime...i am starting in starter module, but is it unclear what is needed in the "service as object". I have tried "main" which does not work...the examples are "do something"..could someone explain what that is reference to.
Erel B4X founder Staff member Licensed User Longtime User May 7, 2018 #2 Example: Code: Copy StartServiceAtExact(Service7, DateTime.Now + 5 * DateTime.TicksPerHour, True) Service7 is the service that will be started. Make sure that it is not the starter service. Main is an activity, not a service. Upvote 0
Example: Code: Copy StartServiceAtExact(Service7, DateTime.Now + 5 * DateTime.TicksPerHour, True) Service7 is the service that will be started. Make sure that it is not the starter service. Main is an activity, not a service.
J jerryjukem Member Licensed User Longtime User May 8, 2018 #3 I want to take a picture every 24 hours. Main is your camera example. Using StartActivity(main) in start service, does work for first picture. After pause, the service starts but screen is blank. I guess i have to redo something, but everything i have tried crashes. Do i need to put all the camera stuff in service module?( I didnt think i could) Or is this whole method bogus? Upvote 0
I want to take a picture every 24 hours. Main is your camera example. Using StartActivity(main) in start service, does work for first picture. After pause, the service starts but screen is blank. I guess i have to redo something, but everything i have tried crashes. Do i need to put all the camera stuff in service module?( I didnt think i could) Or is this whole method bogus?
Erel B4X founder Staff member Licensed User Longtime User May 8, 2018 #4 We can't really help you if you don't provide the relevant information. Upvote 0