Curious, is anyone inside of Google using Kotlin for their Android apps, or is this all for third party developers?
Android KTX: Kotlin Development for Android
51–60 of 75 posts
Re: Android KTX: Kotlin Development for Android
#52> You may notice that Android KTX uses package names that begin with androidx. This is a new package name prefix that we will be using in future versions of Android Support Library. We hope the division between android.* and androidx.* makes it more obvious which APIs are bundled with the platform, and which are static libraries for app developers that work across different versions of Android. Ugh, okay. It's going…
https://www.youtube.com/watch?v=p8yX5-lPS6o&list=PLQ176FUIyI...
Re: Android KTX: Kotlin Development for Android
#53Earlier quoted context omitted.
Hmm, have you used any of the Java-based autocompletion systems? - IntellJ / Android Studio autocompletion system is context aware and will only list relevant methods (which means that the list is rather short and useful for the context). Which is a stark contrast to many ctags-like autocompletion systems, which will just dump all the symbols on you and aren't very useful in my experience. Using autocompletion means…
Most of my experiences with Java were during college with Eclipse. I just remember finding it rather frustrating to have the autocomplete regularly popping up and showing me dozens of options without an easy way of learning more about em. At some point I read through the Kotlin docs and found it interesting, but didn't have any projects in mind for it. I might try my hand again along with IntelliJ / Android Studio. I…
Re: Android KTX: Kotlin Development for Android
#54As an alternative to learning Kotlin on Android, you can spend the time learning flutter. Then you get concise code which works on Android and IOS now and on other platforms in the future - including desktops.
And it's made by Google, unsurprinsingly. A big plus for Kotlin is that being a jetbrains project, it has top of the line intellij tooling support right at release date.
Re: Android KTX: Kotlin Development for Android
#55> To start using Android KTX in your Android Kotlin projects, add the following to your app module's build.gradle file:
repositories {
google()
}
dependencies {
// Android KTX for framework API
implementation 'androidx.core:core-ktx:0.1'
...
}Re: Android KTX: Kotlin Development for Android
#56Laughed when I saw this Apache Groovy code slinking away at the bottom of the article: > To start using Android KTX in your Android Kotlin projects, add the following to your app module's build.gradle file: repositories { google() } dependencies { // Android KTX for framework API implementation 'androidx.core:core-ktx:0.1' ... }
Re: Android KTX: Kotlin Development for Android
#57As an alternative to learning Kotlin on Android, you can spend the time learning flutter. Then you get concise code which works on Android and IOS now and on other platforms in the future - including desktops.
Re: Android KTX: Kotlin Development for Android
#58some examples are fine, but come on... > Uri.parse(myUriString) vs. > myUriString.toUri() I'm not sure if I would prefer the second one...
I was about to post the same thing. The first one makes way more sense to me.
I know C# didn’t do it first, but I’m only old enough to remember C# doing it... and watching people learn the hard way that extension methods pollute the global namespace very easily.
This would be a textbook example of what not to use extension methods for, adding a very specialized extension to a basic type where a simple static utility method would suffice.
Re: Android KTX: Kotlin Development for Android
#59Earlier quoted context omitted.
And it's made by Google, unsurprinsingly. A big plus for Kotlin is that being a jetbrains project, it has top of the line intellij tooling support right at release date.
If it's made by Google, shouldn't we avoid it as it's likely to be discontinued in a few months?
Re: Android KTX: Kotlin Development for Android
#60Earlier quoted context omitted.
And it's made by Google, unsurprinsingly. A big plus for Kotlin is that being a jetbrains project, it has top of the line intellij tooling support right at release date.
If it's made by Google, shouldn't we avoid it as it's likely to be discontinued in a few months?
With the big investment they are doing in Fuchsia it seem unlikely they will abandon it soon.