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;
case R.id.action_download_xml:
uebergabe.downloadXML();
Toast.makeText(this, "Downloaded .xml",
Toast.LENGTH_SHORT).show();
break;
case R.id.action_upload_xml:
Toast.makeText(this, "Upload .xml",
try {
uebergabe.uploadXML();
} catch (FileNotFoundException e) {
e.printStackTrace();
Toast.makeText(this, "Upload .xml failed",
Toast.LENGTH_SHORT).show();
}
break;
case R.id.action_update:
Intent intentneustart = getIntent();