OsmDroid: User agent doesn't work with Fragments
Every example available on the internet tells us to use this line of code to get the user agent (without it the map won't load).
The problem is that applicationContext yields "Unresolved reference". Same goes for this.getPreferences().
I've tried to put that code into MainActivity (no fragments) and it works.
Is there any way to replace it in this context?