hello i have activity and i call many fragment based on my application business i need to call method from fragment in activity i searched in the internet but i cannot find the
Your solution is pretty simple, find the fragment instance assuming you have already added it, and call your method as follow:
HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager().findFragmentByTag("myFragmentTag");
if(homeFragment != null) //check for null
homeFragment.addUserLineInfoFragment();