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;
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user