Skip to content

Instantly share code, notes, and snippets.

View artsuhov's full-sized avatar
🏠
Working from home

Artyom Suhov artsuhov

🏠
Working from home
View GitHub Profile
@artsuhov
artsuhov / android_lifecycle_recommendations.md
Created April 6, 2017 11:37 — forked from kaushikgopal/android_lifecycle_recommendations.md
Notes on opportune moments to do "stuff" in the Android Lifecycle
  • In general you want to try and put things in onStart and onStop for logical start and stops.

Activity

onCreate

  • Dagger inject self into graph
  • setContentView(R.layout.xxx)
  • Butterknife.bind(this)
  • RxJava CompositeSubscription.add (if NON UI related work being done)
  • realm = Realm.getDefaultInstance();