change mode of android phone as day, night, automatic
<p>Can I change android phone mode day, night, automatic in programatically...</p>

<p>UiModeManager manager = (UiModeManager)getSystemService(Context.UI_MODE_SERVICE);
                manager.setNightMode(UiModeManager.MODE_NIGHT_YES);</p>

<p>this is not working for me.... </p>

<p>shall i set any permission in androidmaifest.xml for this???</p>
