Support for Night Mode
The BlackBerry Dynamics SDK for Android version 6.1 and later supports Night Mode. The Greetings server and Application policy sample apps in the SDK package demonstrate how to support this feature. The other sample apps use light mode.
You can turn off support for Night Mode in the BlackBerry Dynamics UI by adding the following code to the application class:
import android.support.v7.app.AppCompatDelegate;
...
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
This can be useful for apps that do not support Night Mode, to ensure a consistent UI experience (all screens will use light mode). Most of the sample apps in the SDK package include this code for reference.