src/us/socialgoodworking/mocklocation/MockLocationActivity.java
@Override
    protected void onSaveInstanceState(Bundle saveState) {
        saveState.putInt("mode", currentMode);
        saveState.putDouble("currentLat", currentLatLng.latitude);
        saveState.putDouble("currentLng", currentLatLng.longitude);
        saveState.putDouble("previousLat", currentLatLng.latitude);
        saveState.putDouble("previousLng", currentLatLng.longitude);
        saveState.putString("currentRoute", currentRoute);
        saveState.putBoolean("started", bStarted);
        
        if (currentRoute != null && !currentRoute.isEmpty()) {
        	saveState.putInt("index", routeList.getCurrentIndex(currentRoute));
        }

        super.onSaveInstanceState(saveState);
    }
// Save the activity state in case there's an orientation change...
Save the activity state in case there's an orientation change
Save the activity state in case there ' s an orientation change
@Override
    protected void onSaveInstanceState(Bundle saveState) {
        saveState.putInt("mode", currentMode);
        saveState.putDouble("currentLat", currentLatLng.latitude);
        saveState.putDouble("currentLng", currentLatLng.longitude);
        saveState.putDouble("previousLat", currentLatLng.latitude);
        saveState.putDouble("previousLng", currentLatLng.longitude);
        saveState.putString("currentRoute", currentRoute);
        saveState.putBoolean("started", bStarted);
        if (currentRoute != null && !currentRoute.isEmpty()) {
        	saveState.putInt("index", routeList.getCurrentIndex(currentRoute));
        }
        super.onSaveInstanceState(saveState);
    }
@ Override protected void onSaveInstanceState ( Bundle saveState ) { saveState . putInt ( "mode" , currentMode ) ; saveState . putDouble ( "currentLat" , currentLatLng . latitude ) ; saveState . putDouble ( "currentLng" , currentLatLng . longitude ) ; saveState . putDouble ( "previousLat" , currentLatLng . latitude ) ; saveState . putDouble ( "previousLng" , currentLatLng . longitude ) ; saveState . putString ( "currentRoute" , currentRoute ) ; saveState . putBoolean ( "started" , bStarted ) ; if ( currentRoute != null && ! currentRoute . isEmpty ( ) ) { saveState . putInt ( "index" , routeList . getCurrentIndex ( currentRoute ) ) ; } super . onSaveInstanceState ( saveState ) ; }
Save the activity state in case there's an orientation change...
Save the activity state in case there ' s an orientation change ...