I have a method sendData() in my fragment. This method starts a new Activity. I want to call this method from my ArrayAdapter.
sendData()
ArrayAdapter
Here is my c
I know it's late to answer but There are 2 ways more to do it:
You can also send broadcast from adapter and register it in fragment.
broadcast
adapter
fragment
Use interface. Refer this SO question for details.