1. A computer-implemented method comprising: determining multiple application fragments of a computer application, wherein each application fragment of the application fragments includes a code to present at least one interface of the computer application; storing the application fragments at a storage device; generating a resource dependency data structure, wherein for each specific application fragment of the application fragments, the resource dependency data structure includes identifications of resources that are needed for running the specific application fragment; determining that a second application fragment follows a first application fragment based on an access of the resource dependency data structure, the resource dependency data structure associating the first application fragment with the second application fragment based on a determination that the second application fragment follows the first application fragment during operation of the computer application; and streaming, via a network component, the second application fragment of the application fragments to a computing device, wherein the first application fragment corresponds to an activity in a first operating environment, wherein the second application fragment corresponds to the activity in a second operating environment, and wherein the second application fragment follows the first application fragment in response to detecting a transition from doing the activity on a first device to doing the activity on a second device, the first device hosting the first operating environment and the second device hosting the second operating environment.