Val and Var in Kotlin

Variables defined with var are mutable(Read and Write) Variables defined with val are immutable(Read only) Simply, var (mutable) and val (immutable values like in Java (final modifier) var x:Int=3 x *= x //gives compilation error (val cannot be re-assigned) val y: Int = 6 y*=y val and var both...

Meetup - Kotlin Nights

Kotlin Night is a meetup that includes 3-4 talks on Kotlin or related technologies. At JetBrains we've organised a few events: Kotlin Night San Francisco and Kotlin Night London. The community however is asking for more Kotlin Nights and are willing to organise these themselves. Here you would...

Hurry Up, Earn a Developer Scholarship from Google!

What you will get and what they provides How it Works To apply for a scholarship, you need to be at least 18 years old and live in the US. You'll begin by choosing your learning path, either Web Developer or Android Developer. From there, once you're accepted, we'll place you in one of...

Kotlin Conference Nov 2-3 at San Francisco

KotlinConf is just around the corner, and if you haven’t checked out the great speaker line-up and sessions, you might want to do that now! We’ve got two days jam-packed with content around Kotlin, whether you’re doing mobile, desktop, server-side or web front-end development,...

Oreo: Auto-sizing Textview in Android Studio using Kotlin

Android 8.0 (API level 26) allows you to instruct a TextView to let the text size expand or contract automatically to fill its layout based on the TextView's characteristics and boundaries. This setting makes it easier to optimize the text size on different screens with dynamic content. First important...

Udacity: Self-Driving Cars Scholarship Program

Lyft and Udacity share a commitment to preparing for an autonomous future where technologies like self-driving cars will benefit our cities, our environment, and our lives. We are committed to making that future more accessible to all—through education programs, open platforms, and now scholarships....

Alert Dialog box in android using Kotlin

A subclass of Dialog that can display one, two or three buttons. If you only want to display a String in this dialog box, use the setMessage() method.  Most frequently using part is creating alert dialog box during application development. Here we are going to develop alert dialog using kotlin. Here...

Solution: “Type inference failed” error by using "findViewById” in Kotlin

If you get any error when you are using kotlin and references views to kotlin, then most of time every developer faced  “Type inference failed” error  in Kotlin. We have few option for such kind of error in kotlin, var tvName = findViewById(R.id.txtName) as TextView to var tvName =...

How to Install Crashlytics via Gradle in Android Studio and Kotlin

Crashlytics is the most powerful, yet lightest weight crash reporting solution.Spend less time finding and more time fixing crashes. Named the #1 performance SDK on both iOS and Android, Crashlytics provides deep and actionable insights, even the exact line of code your app crashed on. First you...

What is new in Android Oreo?

After more than a year of development and months of testing by developers and early adopters (thank you!), we're now ready to officially launch Android 8.0 Oreo to the world. Android 8.0 brings a ton pic courtesy: developer.android.com of great features such as picture-in-picture, autofill, integrated...

Kotlin 1.1.4-2 is released with new features

Kotlin 1.1.4-2 is just released with several important hotfixes, here are some change logs that kotlin changes in new released version. 1.1.4-2 KT-19679 CompilationException: Couldn't inline method call 'methodName' into... KT-19690 Lazy field in interface default method leads to ClassFormatError KT-19716...

Ad Mob Integration in Kotlin

Firebase is a mobile platform that helps you quickly develop high-quality apps, grow an engaged user base, and earn more money. Since AdMob is now a part of Firebase, we've made it simpler to use AdMob along with other Firebase services such as Analytics. Here is the simplest way of how to...

Share Preferences in Kotlin

Interface for accessing and modifying preference data returned by getSharedPreferences(String, int). You can create a new shared preference file or access an existing one by calling one of two methods: getSharedPreferences() — Use this if you need multiple shared preference files identified...