Android: Unterschied zwischen den Versionen
Aus wiki
| Zeile 19: | Zeile 19: | ||
Log.d(this.getClass().getName(), targetString); | Log.d(this.getClass().getName(), targetString); | ||
</code> | </code> | ||
| + | |||
| + | |||
| + | === Let Android Studio fetch the sources with gradle === | ||
| + | add: | ||
| + | apply plugin: 'idea' | ||
| + | <code> | ||
| + | idea { | ||
| + | module { | ||
| + | // if you hate browsing Javadoc | ||
| + | downloadJavadoc = false | ||
| + | |||
| + | // and love reading sources :) | ||
| + | downloadSources = true | ||
| + | } | ||
| + | }</code> | ||
| + | source: http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html | ||
Version vom 20. April 2015, 13:22 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 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);
Let Android Studio fetch the sources with gradle
add:
apply plugin: 'idea'
idea {
module {
// if you hate browsing Javadoc
downloadJavadoc = false
// and love reading sources :)
downloadSources = true
}
}
source: http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html