it looks like you are using MIT App Inventor…
therefore please ask there in this thread Open Source • Background Tasks: Itoo 🚀 - Extensions - MIT App Inventor Community and do not forget to ask your question… I only can see some blocks…
Taifun
PS: I’m closing the 2 year old thread…