I'm using the latest Android SDK for VK, and trying to get posts from my wall:
VKParameters vkParameters = VKParameters.from(VKApiConst.USER_ID, SettingsManager.getInstance().getVkId());
VKRequest vkRequest = VKApi.wall().get(vkParameters);
vkRequest.executeWithListener(new VKRequest.VKRequestListener() {
@Override
public void onComplete(VKResponse response) {
super.onComplete(response);
VKList<VKApiPost> posts = (VKList<VKApiPost>) response.parsedModel;
for (VKApiPost post : posts) {
Logger.i(GuestsActivity.class, "Post: " + post.getId());
}
}
@Override
public void onError(VKError error) {
super.onError(error);
}
});
I see the JSON and string in response, but parsedModel is null:
Why and how to fix it?
You need add request param extended
(and yes, i know its strangely ):
VKApiConst.EXTENDED, 1