California rolled out the nation's first statewide earthquake warning system on Thursday, designed to detect seismic waves and alert residents through a mobile phone app even before the ground starts shaking.