change normal xml to test xml

This commit is contained in:
m_broelemann 2020-12-30 19:08:01 +01:00
parent 7467c310b3
commit a3a1ceae59

View File

@ -87,7 +87,7 @@ public class MainActivity extends AppCompatActivity {
NavigationUI.setupActionBarWithNavController(this,
navController, mAppBarConfiguration);
NavigationUI.setupWithNavController(navigationView, navController);
xml = new TestXML();
//xml = new TestXML();
}
/** Fügt Elemente zur Aktionsleiste hinzu, wenn diese vorhanden ist.*/
@Override
@ -152,7 +152,7 @@ public class MainActivity extends AppCompatActivity {
Toast.LENGTH_SHORT).show();
Intent intent = new Intent(Intent.ACTION_SEND);
String shareBody = "gegen xml für den PI ersetzen";
intent.setType("text/platin");
intent.setType("text/plain");
intent.putExtra(intent.EXTRA_TEXT, shareBody);
startActivity(intent);
/**
@ -249,7 +249,7 @@ public class MainActivity extends AppCompatActivity {
xmlFile.delete();
}
InputStream inputStream = getAssets().open(
"XML/default.xml");
"XML/Test.xml");
byte[] buffer = new byte[inputStream.available()];
inputStream.read(buffer);
inputStream.close();