How to hide Actionbar and not to hide statusbar(titlebar)?

Check the below image I need same things in my app. I wanted to hide just actionbar not statusbar(titlebar). I use below code where both actionbar and statusbar hide.