Kotlin – Single code on Multiline
This code: val data: String = “This ” + “is ” + “example ” + “of ” + “long ” + “string” println(data) will run well on kotlin. But it will return error whe...
"Talk is cheap. Show me the code." - Linus Torvalds
This code: val data: String = “This ” + “is ” + “example ” + “of ” + “long ” + “string” println(data) will run well on kotlin. But it will return error whe...
Cloud Firestore allow us to update data in offline mode and it will synchronize data to server automatically. But if you’ve created the feature for CRUD firestore data in online mode, you might find...
One of favorite features in Cloud Firestore is they allow us to load data even we have no internet access. Actually it work by saving firestore data on our gadget with cache and always...
We write post about how to integrate Android Kotlin and Firestore before here: Connecting, insert data and add data here Updata and delete data here If you’re just started learn Firestore, please read that...
Android provide easy way to code event when user finish type on edittext call “setOnEditorActionListener”, for example it catch when user select “enter” button on the keyboard. So no need to check every user...
From our post about how to get Firestore data on Kotlin here, we grab Firestore data by it name: for (document in task.result) { list_member.add(Member(document.id,document.get(“first”).toString(), document.get(“last”).toString(), document.get(“born”).toString())) } Since Firestore allow us to convert...
Kotlin provide some way to do loops on your code, here they are: FOR LOOP There’s some kind of FOR loop in Kotlin: Using Range for(x in 1..5){ print(x) } output: 12345 for(x in...
We make a post about how to integrate android kotlin with Cloud Firestore before here. Now we will try to make a feature to update and delete data on Cloud Firestore, but.. make sure...
One of the ease of development with javascript is they are simple when I want to print the message on dialog. All I need to type for showing message is: alert(“Hello world!!”) and you...
One of big change from Java to Kotlin is Kotlin often not use get/set for manipulate their property like Java. For example on EditText you need this code on Java for get or set...