protected void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set the actionBar to have up navigation
            ABSActionBar actionBar = SupportActionBar;

            if (actionBar != null)
            {
                actionBar.SetDisplayOptions(
                    ABSActionBar.DisplayHomeAsUp, ABSActionBar.DisplayHomeAsUp);
            }


            AirshipConfigOptions options = UAirship.Shared().AirshipConfigOptions;

            // Only add the push preferences if the pushServiceEnabled is true
            if (options.PushServiceEnabled)
            {
                this.AddPreferencesFromResource(Resource.Xml.push_preferences);
            }

            // Only add the location preferences if the locationServiceEnabled is true
            if (options.LocationOptions.LocationServiceEnabled)
            {
                this.AddPreferencesFromResource(Resource.Xml.location_preferences);
            }

            // Display the advanced settings
            if (options.PushServiceEnabled)
            {
                this.AddPreferencesFromResource(Resource.Xml.advanced_preferences);
            }

            // Creates the UAPreferenceAdapter with the entire preference screen
            preferenceAdapter = new UAPreferenceAdapter(PreferenceScreen);
        }