Android: Unterschied zwischen den Versionen
Aus wiki
(→Reader to String code) |
|||
| Zeile 20: | Zeile 20: | ||
=== Reader to String code === | === Reader to String code === | ||
| − | <code>Reader read = response.body().charStream(); | + | <code> |
| + | Reader read = response.body().charStream(); | ||
int intValueOfChar; | int intValueOfChar; | ||
String targetString = ""; | String targetString = ""; | ||
| Zeile 27: | Zeile 28: | ||
} | } | ||
read.close(); | read.close(); | ||
| − | Log.d(this.getClass().getName(), targetString);</code> | + | Log.d(this.getClass().getName(), targetString); |
| + | </code> | ||
Version vom 27. März 2015, 09:28 Uhr
Inhaltsverzeichnis
Exclude "TAG" from LogCat (Eclipse-View)
tag:^(?!(TAG))
Uninstall Application from CLI
adb uninstall ch.christofbuechi.xyz
delete just user-data from application
adb shell pm clear ch.christofbuechi.xyz
Reader to String
Reader read = response.body().charStream();
int intValueOfChar;
String targetString = "";
while ((intValueOfChar = read.read()) != -1) {
targetString += (char) intValueOfChar;
}
read.close();
Log.d(this.getClass().getName(), targetString);
Reader to String code
Reader read = response.body().charStream();
int intValueOfChar;
String targetString = "";
while ((intValueOfChar = read.read()) != -1) {
targetString += (char) intValueOfChar;
}
read.close();
Log.d(this.getClass().getName(), targetString);