Sickle Cell App
This commit is contained in:
@@ -258,7 +258,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result.setText("Negative");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -266,7 +266,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result_confirmatory.setText("");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
|
||||
}
|
||||
@@ -308,7 +308,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result.setText("Negative");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
}
|
||||
else
|
||||
@@ -316,7 +316,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result.setText("Positive");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
|
||||
}
|
||||
@@ -390,7 +390,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result_confirmatory.setText("Sickle Cell Trait");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
}
|
||||
else if( value >=0.24)
|
||||
@@ -398,7 +398,7 @@ public class MainActivity extends AppCompatActivity implements AdapterView.OnIt
|
||||
result_confirmatory.setText("Sickle-Cell Disease");
|
||||
result_test=result.getText().toString();
|
||||
result_test1=result_confirmatory.getText().toString();
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
|
||||
|
||||
@@ -447,13 +447,13 @@ else if (device.equals("Denovix"))
|
||||
if(value>=0.16 && value < 0.24)
|
||||
{
|
||||
result_confirmatory.setText("Sickle Cell Trait ");
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
}
|
||||
else if( value >0.24)
|
||||
{
|
||||
result_confirmatory.setText("Sickle-Cell Disease");
|
||||
SaveProductInfoToDatabase();
|
||||
SaveTestInfoToDatabase();
|
||||
|
||||
|
||||
}
|
||||
@@ -493,7 +493,7 @@ else if (device.equals("Denovix"))
|
||||
}
|
||||
|
||||
|
||||
private void SaveProductInfoToDatabase()
|
||||
private void SaveTestInfoToDatabase()
|
||||
{
|
||||
HashMap<String, Object> productMap = new HashMap<>();
|
||||
productMap.put("Value", String.valueOf(value));
|
||||
|
||||
Reference in New Issue
Block a user