Kayıtlar

Ağustos, 2017 tarihine ait yayınlar gösteriliyor

How to count the lines of Android App?(Kotlin & Java)

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

How to close Android Soft KeyBoard programmatically?(Kotlin & Java)

How to hide soft keyboard on android with code? Note: Emulator does not appear, try live on the phone.

MultiDex Error like "FirebaseInitProvider Error path Android"

“Unable to get provider com.google.firebase.provider.FirebaseInitProvider” Error path Android Solution  This error shows generally on api 19. We faced that problem with Firebase when run application below API 19(< 4.4.2) devices due to error of Multidex.  We recommend that you first, add only firebase messaging or firebase crash instead of firebase core in gradle file. Using firebase core is unnecessary and will slow down the application. So maybe you do not need multidex. Anyway You can resolve the problem as follows; Add depency and add multidex.install() in attachBaseContext.

Dialog throwing "Unable to add window — token null is not for an application” Error

This is a common problem, you can not reach the context first and therefore it is null. What you need to do here is that if you use "ActivityName.this" instead of getApplicationContext(),context etc. your problem will be resolved. Like this;  

Thread that has not called Looper.prepare() Error

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;