java.lang.RuntimeException: sl.povhe.platinet.MainActivity@100ff0c must implement OnFragmentInteractionListener

Stack Overflow | Žiga Povhe | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Navigation Drawer - Fragments crashing

    Stack Overflow | 4 months ago | Žiga Povhe
    java.lang.RuntimeException: sl.povhe.platinet.MainActivity@100ff0c must implement OnFragmentInteractionListener

    Root Cause Analysis

    1. java.lang.RuntimeException

      sl.povhe.platinet.MainActivity@100ff0c must implement OnFragmentInteractionListener

      at sl.povhe.platinet.Nexus6P_Fragment.onAttach()
    2. sl.povhe.platinet
      Nexus6P_Fragment.onAttach
      1. sl.povhe.platinet.Nexus6P_Fragment.onAttach(Nexus6P_Fragment.java:83)
      1 frame
    3. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1043)
      2. android.support.v4.app.BackStackRecord.setLastIn(BackStackRecord.java:838)
      3. android.support.v4.app.BackStackRecord.calculateFragments(BackStackRecord.java:878)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:719)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
      6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536)
      6 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5417)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames