Reputation: 2803
Here is the post I need clarified (I am unable to comment on this post because I am a new user, and I tried asking a question below it that just got deleted):
How to implement OnFragmentInteractionListener
I am getting the exact same error as this user, under the exact same scenario, and on his post, he says it is working, however he never explicitly explains what exactly he did. Can anyone shed some light on how this was solved??
Where exactly does the
implements OnFragmentInteractionListener
go?
because currently the activity I am trying to call the other fragments in is as follows:
public class MyActivity extends Activity implements NavigationDrawerFragment.NaviationDrawerCallbacks{
I have no clue where to slot in the missing implements.
Any and all clarification helps!
My exact problem is defined in that above post on StackOverflow, let me know if I can do anything else to clarify this question!
Thanks!
Upvotes: 1
Views: 785
Reputation: 2921
A single class can implement more than one interface:
public class MyActivity extends Activity implements OnFragmentInteractionListener, NavigationDrawerFragment.NaviationDrawerCallbacks {
Upvotes: 2