Refactored FlightDataActivity.java