Set
default
values
for the Settings screen.
The
comment tag associated with customizations of the default settings is
ANDROID_CUSTOMIZATION_POINT_DEFAULTSETTINGS.
- Open the CustomizationHelper.java file, which is located in
the ...\HybridWebContainer\src\com\sybase\hwc folder.
- 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.
- 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:
- Find the method in CustomizationHelper named
isSettingsSaveButtonAlwaysEnabled(), which, by default,
returns false.
- Change the method to return true so the save button is
always enabled if all of the fields requiring values are populated.