Action Bar is not hiding

#1

public class CrimeCameraActivity extends SingleFragmentActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
// Hide the window title.

   requestWindowFeature(Window.FEATURE_NO_TITLE);

// Hide the status bar and other OS-level chrome
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.onCreate(savedInstanceState);
}

@Override
protected Fragment createFragment(){
    return new CrimeCameraFragment();
}

}

this is my code ,i am using as suggested. but action bar is displaying constantly. Status bar is not displayng.