Become a member
Sign in
Youming
Youming

Youming

7 Following
  • Profile
  • Claps
  • Highlights
  • Responses

Highlighted by Youming

See more

From Developing for Android II by Chet Haase

…riables to cache objects that should not actually persist for the life of the entire process. Note, in particular, that the lifetime of a static variable (which is equal to the lifetime of the underlying process) is not the same as the lifetime of an Activity. This misunderstanding can, and has, led to leaking Activity objects across configuration changes (…

From Developing for Android II by Chet Haase

Enums are typically used to represent constants, but they are much more expensive than primitive-type representations, in terms of the code size and the memory allocated for the enum objects.

From Developing for Android II by Chet Haase

Also, note that requesting iterators always causes an allocation, even on an empty list. So if you are using the foreach syntax on a Collection (for (Object o : myObjects)), you are causi…

Claps from Youming

See more

Dagger 2 for Android Beginners — Dagger 2 part I

Hari Vignesh Jayapalan

Understanding Dagger 2

Miguel Beltran

A beginners guide to Gradle

Andrew MacMurray