upload und download mit leben gefüllt
This commit is contained in:
parent
27f8312f51
commit
94ddd4957b
@ -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",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user