The problem happens because you didn't follow UIHelper Applying section. The error you posted is pointing to the following piece of code:
if (sInstance.getContext() == null) {
throw new BindException("Context must not be null");
}
So, let's take a look at the getContext
method, it's very simple:
Context getContext() {
return VKUIHelper.getTopActivity();
}
Why does it return null
? Well, VKUIHelper
is simple, take a look on it and you'll realize why (because mTopActivity
is null
without calling VKUIHelper.onCreate()
)