I have Accelerometer and Gyro sensor streaming data which is saved in Download folder. I want to read all the data or line by line as the data stream in real time,but i am not able to go beyond first line.
try {
CSVReader reader = newCSVReader(newFileReader(path.getAbsoluteFile()));
{
List<String[]>allRows = reader.readAll();
for (String[]row :allRows)
Log.i(TAG1,Arrays.toString(row));
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
in the output only first line is printed. I need to read each line so that i can do further operation.