android - call methods defined in the fragments from SherlockFragmentActivity -


i using sherlockfragmentactivity 2 fragments. want call methods defined in fragments sherlockfragmentactivity.

fragment1 extends fragment{    protected void resetsettings(){       //my code     }      } 

and activity

 main extends sherlockfragmentactivity{     //here want call resetsettings()   } 


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -