You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E/ContextImpl: Tried to access visual service WindowManager from a non-visual Context: WindowManager should be accessed from Activity or other visual Context. Use an Activity or a Context created with Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen.
java.lang.IllegalAccessException: Tried to access visual service WindowManager from a non-visual Context
at android.app.ContextImpl.getSystemService(ContextImpl.java:2059)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:857)
at pro.piwik.sdk.tools.DeviceHelper.getResolution(DeviceHelper.java:123)
at pro.piwik.sdk.Tracker.<init>(Tracker.java:137)
at pro.piwik.sdk.Piwik.newTracker(Piwik.java:59)
The text was updated successfully, but these errors were encountered:
Otherwise we'd have to get one from the dev ( trackDeviceScreen(activity: Activity)?) (and we'd have to be careful not to leak it). Could maybe be automated by hooking into the Activity lifecycle listeners via the Application instance, but we currently don't explicitly get the Application instance, just a Context.
The text was updated successfully, but these errors were encountered: