I am trying to automate the example 'Camera2' from Erel (
برای دیدن لینک ها باید ثبت نام کنید
) to make timelapses. I would like to be able to call the function TakePicture every 'x' minutes automatically. Should I use a timer? or StartServiceAt? What is the best way to archive the best functionality, less battery drain and assure that android will not kill the activity? I will appreciate if you can give me some advice, I am a newbie in B4A, trying to learn this powerful software.