For recent Android versions, go to Settings > Apps. Then, select the app if it's in the recently opened apps list or select ...
You can turn off Safe Mode on Android by restarting your device or using the Notification panel.