-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
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
Labels
No labels