greenDAO
greenDAO copied to clipboard
Android getActivity, getContext, getView in fragment is undefined
Have you defined your entities inside of WelcomeFragment? Try to define them each in their own class. -ut
No response. Closing. -ut
I have the same problem. I do not understand, what do you mean by "define your entities inside of Fragment"? If they are imported?
I just found out that in my case the problem was that I had "import org.greenrobot.greendao.annotation.ToMany;" under imports. It was never used in the code, but it was a reason for "getActivity() undefined" error. So I guess in your case the problem is NotNull annotation.