Friday, February 16, 2018

Tip: Use lambdas

The reason is that lambda does not hold strong reference and will not cause memory leak.
To use lambda just add following block :
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
inside android {...} block of app level of your build.gradle file

1 comment:

  1. With more than 10.6 million unique guests over the past 12 months, Practical Machinist is probably the most visited website for metalworking professionals. Practical Machinist is the best approach to study new methods, get answers rapidly and talk about common challenges together with your friends. Register for the Luggage Sets world’s largest manufacturing know-how discussion board for free right now to stay in the know. R&D throughout nearly every business will want prototypes nicely as|in addition to} a point of trial and error. CNC machining presents the ability to tackle any thought from your head and make it into actuality with professional precision. The greatest benefit of about} CNC punching is that once you set the design, you can make make|you might make} as many copies of it as your materials will enable.