Posts

Showing posts from February, 2018

Taking Advantage of Kotlin - Part II

Taking Advantage of Kotlin - Part II Let's get set up. I'm sure you have the all requirements that I have said earlier in last post. Let's try to convert a Java - coded app converting into Kotlin. First, You have to download the project, T he Address Book . Unpack the Zip. MyAddressBook-starter  contains the starter app Steps 1 and 2 are the introduction and getting started steps, so there are no folders for these ones. MyAddressBook-stepN  folders contain the app in the finished state after step N. The final app can be found in the  MyAddressBook-final  folder. App Overview MyAddressBook is a simplified address book app that displays a list of contacts in a RecyclerView. You'll be converting all of the Java code into Kotlin, so take a moment to familiarize yourself with the existing code in the MyAddressBook-starter app. Open  MyAddressBook-starter  in Android Studio. Run it. Contact.java The Contact class is a simple Java class that c
Kotlin -  Taking advantage out of Kotlin At I/O 2017, Google  announced official support for Kotlin  for developing Android apps.  Kotlin  is a language developed by  Jetbrains , with a quickly growing developer base because of its concise, elegant syntax, and 100% interoperability with Java. I, who am developing android apps for a time was using java for Android Studio IDE language. After android studio 3.0 release, Jetbrains brought Kotlin support. Let's get stared with Kotlin. What You're gonna need, Android Studio 3.0 An Android device or emulator to run the app on The sample code (If you want, I got one below ) Basic knowledge of developing Android apps in the Java language What You're take out of this, How to use the Android Studio's Java to Kotlin converter. How to write code using Kotlin syntax. How to use Kotlin  lambda expressions  and  extension functions  to reduce boilerplate code and avoid common errors. How to use bui