Configuring Default Values for the Settings Screen

Set default values for the Settings screen.

The comment tag associated with customizations of the default settings is ANDROID_CUSTOMIZATION_POINT_DEFAULTSETTINGS.

  1. Open the CustomizationHelper.java file, which is located in the ...\HybridWebContainer\src\com\sybase\hwc folder.
  2. Find the collection of methods named with the pattern getDefaultConnection<setting_name> or isDefaultConnect<setting_name>, where <setting_name> is the name of the setting.
  3. Edit the methods to return the specific value you require.
    The save button on the settings screen is enabled only when all of the fields requiring values are populated and a field is changed by the user, so if you change the return value for all of the methods to values that users do not have to modify on the device, you can run into a problem. To avoid this issue:
    1. Find the method in CustomizationHelper named isSettingsSaveButtonAlwaysEnabled(), which, by default, returns false.
    2. Change the method to return true so the save button is always enabled if all of the fields requiring values are populated.