Preserving Grox State with Dependency Injection

1 · Groupon · Sept. 14, 2018, 4:49 p.m.
Device configuration changes during runtime are inevitable and one of the common configuration changes is device rotation. Android makes it easier for the application to handle device rotation by restarting the running activity. We have seen in our previous¹ articles² that Grox is very good at managing the applications internal state. However, Grox does not handle device rotation and as a result, we lose the Grox store. In this article, we will see how we can use Grox and Dependency Injection to...