change normal xml to test xml
This commit is contained in:
parent
7467c310b3
commit
a3a1ceae59
@ -87,7 +87,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
NavigationUI.setupActionBarWithNavController(this,
|
NavigationUI.setupActionBarWithNavController(this,
|
||||||
navController, mAppBarConfiguration);
|
navController, mAppBarConfiguration);
|
||||||
NavigationUI.setupWithNavController(navigationView, navController);
|
NavigationUI.setupWithNavController(navigationView, navController);
|
||||||
xml = new TestXML();
|
//xml = new TestXML();
|
||||||
}
|
}
|
||||||
/** Fügt Elemente zur Aktionsleiste hinzu, wenn diese vorhanden ist.*/
|
/** Fügt Elemente zur Aktionsleiste hinzu, wenn diese vorhanden ist.*/
|
||||||
@Override
|
@Override
|
||||||
@ -152,7 +152,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
String shareBody = "gegen xml für den PI ersetzen";
|
String shareBody = "gegen xml für den PI ersetzen";
|
||||||
intent.setType("text/platin");
|
intent.setType("text/plain");
|
||||||
intent.putExtra(intent.EXTRA_TEXT, shareBody);
|
intent.putExtra(intent.EXTRA_TEXT, shareBody);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
/**
|
/**
|
||||||
@ -249,7 +249,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
xmlFile.delete();
|
xmlFile.delete();
|
||||||
}
|
}
|
||||||
InputStream inputStream = getAssets().open(
|
InputStream inputStream = getAssets().open(
|
||||||
"XML/default.xml");
|
"XML/Test.xml");
|
||||||
byte[] buffer = new byte[inputStream.available()];
|
byte[] buffer = new byte[inputStream.available()];
|
||||||
inputStream.read(buffer);
|
inputStream.read(buffer);
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user