A
A
Andrey2017-02-05 22:04:51
Java
Andrey, 2017-02-05 22:04:51

Board (discussions) in VkApi for android?

I draw an output in the ListView discussion from the group
VKParameters param = new VKParameters();
param.put(VKApiConst.GROUP_ID, group);
VKRequest result = new VKRequest(String.format(Locale.US, "%s.%s", "board", "getTopics"),
param, VKRequest.HttpMethod.GET, VKApiTopicArray.class);
result.executeWithListener(new VKRequest.VKRequestListener() {
@Override
public void onComplete(VKResponse response) {
super.onComplete(response);
topics = (VKApiTopicArray)response.parsedModel;
StringBuilder sb = new StringBuilder();
for (VKApiTopic topic : topics) {
sb.append(topic.title);
sb.append("\r\n\r\n");
}
arr_list.add(sb.toString());
listView.setAdapter(adapter);
}});
All discussions come true! But the question is, how to implement the login method to the desired discussion topic? Do you also need to do some kind of VKRequest?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question