title: I want to use fragment method in main activity
body: <p>I have three fragment which is associated with the viewpager .
  All three fragments are working fine but as now I want to use fragment methods in my extends AppcompactActivity 
  how can I use that .
  my fragments don't have i.d like fm.findviewbyid(R.id.myfragment)</p>