hi,
I am trying to code an app to record my cardio/running routines.
The idea is to log gps points while i run/walk/cycle and also record heartrate with my Zephyr band (bluetooth)
I got the info from Zephyr protocol and packets analyzing some opensource apps. So i got that covered.
I've read the tutorials about services, basic app working, vars, global vars, etc. So i am ready now to start coding.
I want to make this app opensource so i think it could be a nice app to have in the forum so other people could learn about B4A reading a full working app.
What i trying to learn here, and so i ask for suggestions, is to the new Android/B4A programming "frame", as i am a classical c++/delphi/sql windows programmer.
========
The initial structure i've thought is
1 Activity: initialization, user profile & settings, start services (before starting services, check for bluetooth, pairing, and for gps on, satelites check, etc), saves information to files, etc
2 services: 1 service logs gps points to a internal structure, 1 service logs bluetooth packets from zephyr heartrate band
what do you think? could you suggest another better structure?
one thing to take in account is power consumption, because bluetooth and gps could be on, and logging for 2-3 hours, or even more. So thinking about it could be a plus.
also i want the app to be robust, so inside services, i could check for gps disponibility, and to check if communication with bluetooh band is lost, etc...
any comment welcomed!
thanks!
(sorry my english!)
I am trying to code an app to record my cardio/running routines.
The idea is to log gps points while i run/walk/cycle and also record heartrate with my Zephyr band (bluetooth)
I got the info from Zephyr protocol and packets analyzing some opensource apps. So i got that covered.
I've read the tutorials about services, basic app working, vars, global vars, etc. So i am ready now to start coding.
I want to make this app opensource so i think it could be a nice app to have in the forum so other people could learn about B4A reading a full working app.
What i trying to learn here, and so i ask for suggestions, is to the new Android/B4A programming "frame", as i am a classical c++/delphi/sql windows programmer.
========
The initial structure i've thought is
1 Activity: initialization, user profile & settings, start services (before starting services, check for bluetooth, pairing, and for gps on, satelites check, etc), saves information to files, etc
2 services: 1 service logs gps points to a internal structure, 1 service logs bluetooth packets from zephyr heartrate band
what do you think? could you suggest another better structure?
one thing to take in account is power consumption, because bluetooth and gps could be on, and logging for 2-3 hours, or even more. So thinking about it could be a plus.
also i want the app to be robust, so inside services, i could check for gps disponibility, and to check if communication with bluetooh band is lost, etc...
any comment welcomed!
thanks!
(sorry my english!)