Communities and Collections
Posts
Post has attachment
Public
What's New in the Android P Preview
Watch the video here → goo.gl/zes4wj
Check out highlights from the first #AndroidP preview, including network-awareness in JobScheduler, improvements to ART including #Kotlin speed and reduced DEX memory usage, a new way of decoding images, including animated GIFs and WebPs. support for HDR VP9 Profile 2 and HEIC images, dual-camera app support, WiFi location using WiFi Round Trip Time, OMAPI for NFC smart card payments, updates to the Neural Network API including an accelerated Pixel 2 driver, a new Fingerprint Dialog, support for edge-to-edge displays with cutouts, and more.
Watch the video here → goo.gl/zes4wj
Check out highlights from the first #AndroidP preview, including network-awareness in JobScheduler, improvements to ART including #Kotlin speed and reduced DEX memory usage, a new way of decoding images, including animated GIFs and WebPs. support for HDR VP9 Profile 2 and HEIC images, dual-camera app support, WiFi location using WiFi Round Trip Time, OMAPI for NFC smart card payments, updates to the Neural Network API including an accelerated Pixel 2 driver, a new Fingerprint Dialog, support for edge-to-edge displays with cutouts, and more.
Add a comment...
Post has attachment
Public
Creating classes with one role: to hold data? Mark them as “data” classes. The default implementation of equals() is generated (so are hashCode(), toString(), and copy()) and checks for structural equality.
Docs:
https://kotlinlang.org/docs/reference/data-classes.html#data-classes
https://kotlinlang.org/docs/reference/equality.html
#31DaysOfKotlin
Docs:
https://kotlinlang.org/docs/reference/data-classes.html#data-classes
https://kotlinlang.org/docs/reference/equality.html
#31DaysOfKotlin

Add a comment...
Post has attachment
Public
In Kotlin, classes can have mutable and read-only properties, with getters and setters generated by default. You can also implement custom ones if required.
Docs: https://kotlinlang.org/docs/reference/properties.html
#31DaysOfKotlin
Docs: https://kotlinlang.org/docs/reference/properties.html
#31DaysOfKotlin

Add a comment...
Post has attachment
Public
A switch statement with superpowers? Kotlin’s `when` expression can match on just about anything. Literal values, enums, ranges of numbers. You can even call arbitrary functions!
Docs: https://kotlinlang.org/docs/reference/control-flow.html#when-expression
#31DaysOfKotlin
Docs: https://kotlinlang.org/docs/reference/control-flow.html#when-expression
#31DaysOfKotlin
Add a comment...
Post has attachment
Public
Formatting Strings? Refer to variables and expressions in string literals by putting `$` in front of the variable name. Evaluate expressions using `${expression}`.
Docs: https://kotlinlang.org/docs/reference/basic-types.html#string-templates
#31DaysOfKotlin
Docs: https://kotlinlang.org/docs/reference/basic-types.html#string-templates
#31DaysOfKotlin

Add a comment...
Post has attachment
Public
Android P Developer Preview 1 is available today
Read the blog post here → https://goo.gl/Nc3ad2
Get an early look at some of the new features in the next version of Android for testing, development, and don't forget to give us your feedback.
DP1 includes WiFi RTT; multi-camera API, optimized Kotlin; improved notifications and content display; better security and privacy, and much more. With your feedback, we’ll continue to iterate and improve on P, and we’ll have lots more to share at Google I/O in May!
Get started → https://goo.gl/ZDFmvR
Join the discussion in our Google+ community → https://goo.gl/gtc95o
#AndroidP
Read the blog post here → https://goo.gl/Nc3ad2
Get an early look at some of the new features in the next version of Android for testing, development, and don't forget to give us your feedback.
DP1 includes WiFi RTT; multi-camera API, optimized Kotlin; improved notifications and content display; better security and privacy, and much more. With your feedback, we’ll continue to iterate and improve on P, and we’ll have lots more to share at Google I/O in May!
Get started → https://goo.gl/ZDFmvR
Join the discussion in our Google+ community → https://goo.gl/gtc95o
#AndroidP
Add a comment...
Post has attachment
Public
Android Things Developer Preview 7 is available today. New updates include camera improvements, new Bluetooth APIs, and many stability fixes.
Read the blog post here → goo.gl/o4sLWB
Android Things Developer Preview 7 addresses much of the top developer feedback we've received so far during preview. Download the preview today to try out the improved camera resolutions and Bluetooth pairing/connection APIs. Visit the developer console to learn about new features such as product sharing and device update channels.
Join the discussion in our Google+ community → https://g.co/iotdev
#AndroidThings
Read the blog post here → goo.gl/o4sLWB
Android Things Developer Preview 7 addresses much of the top developer feedback we've received so far during preview. Download the preview today to try out the improved camera resolutions and Bluetooth pairing/connection APIs. Visit the developer console to learn about new features such as product sharing and device update channels.
Join the discussion in our Google+ community → https://g.co/iotdev
#AndroidThings
Add a comment...
Post has attachment
Public
For loops get superpowers when used with two other Kotlin features: range expressions and destructuring.
Ranges: https://kotlinlang.org/docs/reference/ranges.html
Destructuring: https://kotlinlang.org/docs/reference/multi-declarations.html#destructuring-declarations
#31DaysOfKotlin
Ranges: https://kotlinlang.org/docs/reference/ranges.html
Destructuring: https://kotlinlang.org/docs/reference/multi-declarations.html#destructuring-declarations
#31DaysOfKotlin
Add a comment...
Post has attachment
Public
Now with prisms? Android KTX uses destructuring to assign the component values of a color. You can use destructuring in your classes, or extend existing classes to add destructuring.
Docs: https://kotlinlang.org/docs/reference/multi-declarations.html
#31DaysOfKotlin
Docs: https://kotlinlang.org/docs/reference/multi-declarations.html
#31DaysOfKotlin
Add a comment...
Post has attachment
Public
Handling nulls in style? Check out the elvis operator `?:`, to cut your “null-erplate”. It’s just a small bit of syntax sugar to replace nulls with a default value or even return!
Docs → goo.gl/8kUGrd
#31DaysOfKotlin
Docs → goo.gl/8kUGrd
#31DaysOfKotlin

Add a comment...
Wait while more posts are being loaded





