posted 10 years ago
I have app with viewpager.I need to call other fragment methon when i click button on first fragment.
this is my mail Activity
this is my fragment1
this is fragment2
this is myfragment_layout xml file
this is my_fragment2 xml filee
when i run the app it gives me the first fragment with a button.when i clcick button it gives me below error
The line which gives null pointer is below