I have a project that should run continuously in the background to save energy. It is probably similar to the MyLocation example but that example is not commented and does nothing on my phone except show a title.
My application needs to wake up every 10 minutes, make a Bluetooth connection, read some serial data, and send it to ThingSpeak. No user interaction is needed so the screen can stay dark.
I am a complete newb to B4X so please help me understand what I need to do to make this work. I have attached my code that works very well as a foreground app.
I also attached a screenshot from the MyLocation example that doesn't look anything like the screenshot included in the MyLocation article. My phone is a Samsung S21 running Android 11.