Summer has begun!!! Now is a great time to get outdoors, enjoy the weather, and sharpen your Android skills! We’ve picked some of the best content from this past year to make it easy.
Because WebView is distributed as a separate APK, Safe Browsing for WebView is available today for devices running Android 5.0 and above. With just one added line in your manifest, you can update your app and improve security for most of your users immediately.
Xiaowen Xin and Renu Chaudhary, Android Security Team in What’s new in WebView security
Two years ago I swore I wouldn’t start seriously learning Kotlin until Google announced support for it. They’ve now done just that—and here I am learning it.
Behind every successful technology is a strong ecosystem. Without the right tools and community, a new programming language will never achieve the uptake required to become a success. That’s why it’s so important that Kotlin is built into the Java ecosystem rather than outside of it.
In Kotlin, every class is
finalby default. You must explicitly use the keyword
open, which is the exact opposite of Java’s
final, to allow the class to be capable of inheritance.
Creators of modern programming languages have a big advantage because they are able to analyze the weaknesses of established languages and make things better themselves.
They’re common sense language features that, when compared to Java, end up saving you a bunch of cognitive overhead, keystrokes, and time.
To put it simple, coroutines are a way to write asynchronous code sequentially. Instead of messing around with callbacks, you can write your lines of code one after the other. Some of them will have the ability to suspend the execution and wait until the result is available.
In my personal experience, 60% of the transformed code is directly usable, and a bigger percentage for simple classes with no complex functionality.