Answer the question
In order to leave comments, you need to log in
Wall.get - response.parsedModel == null. Why?
Using the latest VK SDK for Android (1.6.7) 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);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question