Added comments to Endactiviry.java

This commit is contained in:
wildercayden 2025-01-23 11:06:01 -05:00 committed by GitHub
parent c2a48d6209
commit 4b7cc63270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,11 +42,15 @@ public class EndActivity extends AppCompatActivity {
public void onClick(View view) {
Submit submit = new Submit();
//calls test, write data to String getTeamNumber
submit.getTeamNumberTest();
//Calls CSVmake which makes the CSV file
submit.CSVmake(EndActivity.this);
//Writes data to file to make Google Sheet API take the data
File csvFile = new File(getExternalFilesDir(null), "match_data.csv");
List<List<Object>> data = submit.parseCSVToList(csvFile);
submit.parseCSVToList(csvFile);
//Uploads the Data to the Google sheet
submit.uploadCSV(EndActivity.this);
}
});
@ -56,6 +60,7 @@ public class EndActivity extends AppCompatActivity {
public void onClick(View view) {
Submit submit = new Submit();
//Deletes the CSV file (Currently for testing but feature might stay but with some features to make it harder to do it on accident)
submit.deleteCSVFile(EndActivity.this);
}
});