I don´t think this is a setting we can change programmatically.
It is up to the user to decide if he want this or not.
The best we can do is to point the user to the right Setting to do the change.
This asumes you know the correct intent to call/open this setting.