upload und download mit leben gefüllt

This commit is contained in:
m_broelemann 2021-01-02 22:38:31 +01:00
parent 27f8312f51
commit 94ddd4957b

View File

@ -160,12 +160,19 @@ public class MainActivity extends AppCompatActivity {
break; break;
case R.id.action_download_xml: case R.id.action_download_xml:
uebergabe.downloadXML();
Toast.makeText(this, "Downloaded .xml", Toast.makeText(this, "Downloaded .xml",
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();
break; break;
case R.id.action_upload_xml: case R.id.action_upload_xml:
Toast.makeText(this, "Upload .xml", try {
Toast.LENGTH_SHORT).show(); uebergabe.uploadXML();
} catch (FileNotFoundException e) {
e.printStackTrace();
Toast.makeText(this, "Upload .xml failed",
Toast.LENGTH_SHORT).show();
}
break; break;
case R.id.action_update: case R.id.action_update:
Intent intentneustart = getIntent(); Intent intentneustart = getIntent();