In RunFragment newInstance() add parameter runId. In RunActivity createFragment() if runId is available use it when instantiating RunFragment.