Skip to content

sensor log size  #1

@ChandaniShekhat

Description

@ChandaniShekhat

sensorLog size comes zero so goes in else condition every time in record shape

if (sensorLog.size() > 150) {
Toast.makeText(RecordShapeActivity.this, "OK", Toast.LENGTH_SHORT).show();
SaveRecording(sensorLog, RecordShapeActivity.this, curveCount);
curveCount++;
((Button)findViewById(R.id.btn_rs_recordRoundButton)).setText(Integer.toString(3-curveCount));
if (curveCount== 3){
try {
double dist = getInitialDistance();
new File(getApplicationContext().getFilesDir(),MainActivity.SHAPES_DIR + "d" + Double.toString(dist)).createNewFile();
}catch (Exception e){}
startActivity(new Intent(getApplicationContext(),MainMenu.class));
}
}
else {
Toast.makeText(RecordShapeActivity.this, "Try holding the button longer", Toast.LENGTH_SHORT).show();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions