I am using SherlockFragment and until today I've always used the getActivity() method to get an instance of the activity hosting the fragment. Now I realiced there's also this method in the SherlockFragment API.. which one should I use?
Looks like getSherlockActivity
is just a shortcut to:
(SherlockActivity) getActivity()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With