Hi. I want to log IMU data to a database (room?) for research purposes. I am a bit confused if I should use Work Manager or Foreground Service or something else. I want the data to be written to the database eventually (it can take a minute or two, but not hours) but I do not want any data loss and they can be out of order (I have timestamps to fix it). But the data is high volume - 10Hz. Please suggest. Thank you.
Great explanation. But in XAOMI or other Chinese ROM kills work manager while clearing apk from recent. It'll be great if there have any way not to kill work manager by removing apk from recents