In RoboGuice when I'm using:
@Inject
SharedPreferences prefs;
It injects the default SharedPreferences
How do I inject not default preferences?
like context.getSharedPreferences("my_prefs", Context.MODE_PRIVATE)
In RoboGuice when I'm using:
@Inject
SharedPreferences prefs;
It injects the default SharedPreferences
How do I inject not default preferences?
like context.getSharedPreferences("my_prefs", Context.MODE_PRIVATE)
Copyright © 2021 Jogjafile Inc.
From
Roboguicedocumentation:I haven't used
RoboGuicebefore, but I'm pretty sure that:means the same as:
so if you want to get a key value, you would use only:
and to put a new value:
Hope it will help