add getWindow().requestFeature(Window.FEATURE_ACTION_BAR); for the actionbar null problem