We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fragments/Fragements/app/src/main/java/tabian/com/fragements/Fragment1.java
Line 49 in 4b0a748
MainActivity mMainActivity; @OverRide public void onAttach(Context context){ super.onAttach(context); mMainActivity = (MainActivity) context; }
The text was updated successfully, but these errors were encountered:
Do whatever works for you.
Sorry, something went wrong.
No branches or pull requests
Fragments/Fragements/app/src/main/java/tabian/com/fragements/Fragment1.java
Line 49 in 4b0a748
May be we can use onAttach(Context context) in Fragment classes, like that we can get the main activity and use its public method like that I mean:
MainActivity mMainActivity;
@OverRide
public void onAttach(Context context){
super.onAttach(context);
mMainActivity = (MainActivity) context;
}
The text was updated successfully, but these errors were encountered: