I use the following code, to ask user for enabling scan always available
if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.JELLY_BEAN_MR2 && !wifiManager.isScanAlwaysAvailable)
startActivity(Intent(ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE))
And it's works as it should, but on Samsung Galaxy Note 4 text in window appears as "null requests permission"
Screenshot:
How to replace null with app name?