I am new to Android and I try to do a simple app that can log accelerometer, Gyro and GPS into a single csv file (background) so I could analyze the data later. After some digging in google, all the info I get are kinda old and some are not really working.
So, the questions are:
If I do all the task in UI thread like this https://stackoverflow.com/a/4343827/2985850, I wonder is there a delay between each sensor logging? As I want all the sensor run concurrently at the same sampling rate.
So far, I notice there are 2 ways to accomplish this: using multi-threading or Service. But, (correct me if I'm wrong) the service is also running on UI thread so that mean if I do it the Service way, the logging process also run in a single thread and this might probably cause some delay on the logging process between each sensor?
If there is a better way to accomplish this or any good example feel free to drop 'em here Thanks! :)