In RunFragment add constant LOAD_LOCATION to use as LastLocationLoader id. In onCreate use LoaderManager to initialize LocationLoader. Now app loads database in background.