I have a form in fragment A, after the user enters their information and presses on submit, they should get redirected to fragment B.
I can manage to call the fragment method, however I'm getting a NullPointerException error:
Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
How I am calling the method in fragment B:
(new FragmentB()).infoSubmitted();
How could I effectively call the method in fragment B?