Skip to content
New issue

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

how to get context from loaded class #2

Open
H1-N1 opened this issue Jun 27, 2019 · 1 comment
Open

how to get context from loaded class #2

H1-N1 opened this issue Jun 27, 2019 · 1 comment

Comments

@H1-N1
Copy link

H1-N1 commented Jun 27, 2019

i have a class that use SharedPreferences but i get this error related to app context
Attempt to invoke virtual method 'android.content.SharedPreferences
android.content.Context.getSharedPreferences

and also some other function taht use context
do you have a work around for this issue
thanks

@carloalbertobarbano
Copy link
Member

No sorry, i haven't worked on this project for a while. Maybe you could pass the context as argument to the class you are trying to load from the main app, in order to workaround this issue. Let me know if you find a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants