10 public class MyActivity extends LightCycleActivity { [...] public MyActivity() { attach(networkConnectivityLightCycle); attach(unauthorisedRequestLightCycle); attach(screenStateLightCycle); }
component ◦ hook up light cycle components • LightCycles ◦ Do one thing ◦ Agnostic to the Activity they are attached to. ◦ Independent from the others ◦ Platform independant as much as possible ◦ Tested