do android fragments have oncreate code example
Example: destory fragment
getSupportFragmentManager().beginTransaction().remove(yourFragment).commitAllowingStateLoss();
getSupportFragmentManager().beginTransaction().remove(yourFragment).commitAllowingStateLoss();