Andriod : How to Open Fragemnet2 Which is in Activity2 From Fragment Button in Activity1 : > I have Been Trying alot Unable to do it pls help out... I have Two   
> Fragments fragment1 and fragment2 Activity1 as Fragement1 -> in this  
> fragemnet one there is a Button on it. Onclick of that Button the   
> Fragement in Activity2 Should open 
>    
>    
>      @Override
>        public View onCreateView(LayoutInflater inflater, ViewGroup container,
>                                 Bundle savedInstanceState)
>        {
>            View rootView = inflater.inflate(R.layout.fragment_tools, container, false);
>            Button cntr = (Button) rootView.findViewById(R.id.counterid);
>            cntr.setOnClickListener(new View.OnClickListener()
>            {
>                @Override
>                public void onClick(View v)
>                {
>                    Fragment fragment = new ToolsFragment();
>                    FragmentManager fragmentManager = getActivity().getSupportFragmentManager();
>                    fragmentManager.beginTransaction().replace(R.id.fragmenttools,fragment).addToBackStack(null).commit();
>                }
>            });
>            return rootView;
>        }