Change to FragmentActivity (com.support.v4.app.FragmentActivity) instead of activity