Android: Unterschied zwischen den Versionen

Aus wiki
Wechseln zu: Navigation, Suche
Zeile 7: Zeile 7:
 
=== delete just user-data from application ===
 
=== delete just user-data from application ===
 
  adb shell pm clear ch.christofbuechi.xyz
 
  adb shell pm clear ch.christofbuechi.xyz
 
  
 
=== Reader to String code ===
 
=== Reader to String code ===

Version vom 27. März 2015, 09:28 Uhr

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 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);