Unable to download Logged Data
I want to store data to device memory and retrieved the data later whenever required.
I followed the documentation for data logging.
I am able to log data successfully but when I use the downloadAsync method it just give me the progress how many entries I have downloaded and how many are remaining but it doesn't give me the data. And also it tells me that data is downloaded. But I didn't get the data.
There is some discussion but this also doesn't helped me alot.
https://mbientlab.com/community/discussion/2110/trouble-logging-data
below is the logging documentation link
https://mbientlab.com/androiddocs/latest/logging.html
But the Downloading Data section is not much cleared.
The sample code from docs is:
// download log data and send 100 progress updates during the download
logging.downloadAsync(100, new Logging.LogDownloadUpdateHandler() {
@Override
public void receivedUpdate(long nEntriesLeft, long totalEntries) {
Log.i("MainActivity", "Progress Update = " + nEntriesLeft + "/" + totalEntries);
}
}).continueWithTask(new Continuation<Void, Task<Void>>() {
@Override
public Task<Void> then(Task<Void> task) throws Exception {
Log.i("MainActivity", "Download completed");
return null;
}
});
and in the above snippet how can I get the downloaded logged data.
Comments
What exactly are you logging? The post your referenced has more code, does that user's code work for you?
I am trying to log accelerometer and gyro data. and what to retrieve it later. I am able to log the data but while downloading it I don't get the data. How can I get the logged data in
downloadAsync
methodThere really isn't much to work with here. Provide the information requested in our "How to report an issue" thread:
https://mbientlab.com/community/discussion/3167/how-to-report-an-issue#latest