If you want to know how much code you have written Kotlin, Java and xml, You need to use git first. If you use it so this code enter in Android studio terminal and you learn it. wc -l $(git ls-files | grep '.*\.xml')+$(git ls-files | grep '.*\.java')+$(git ls-files | grep '.*\.kt')
If you seen in Logcat like that "java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()" you probably You are trying to perform a different activity transaction ui operation. So simply do this;