I want to display a list of posts from the wall of the group in my Android application. I write this:
VKRequest request = VKApi.wall().get(VKParameters.from(VKApiConst.OWNER_ID,-95640286,VKApiConst.EXTENDED,1,VKApiConst.FIELDS,"text")); But my application displays a list with lines of this type:
com.vk.sdk.api.model.VKApiPost@3c496ce0 Why not display text posts on the wall of the group?
When replacing the line above with this:
VKRequest request = VKApi.friends().get(VKParameters.from(VKApiConst.FIELDS,"first_name,last_name")); So I have a list of strings with the name and last name of my friends. The output of lines through ListView is carried out.
com.vk.sdk.api.model.VKApiPostclass. What you see in the list is the result of calling itstoStringmethod. Obviously, you need to pull the text out of this class, not the class itself. - Yuriy SPb ♦