Good day. I do here one program using VKSdk. I had no problems with sending requests, but as soon as it came to getting data from VC servers, many questions immediately arose. I have been digging on the Internet for a long time, but have not found any sensible examples with the processing of new messages.

The algorithm should be the following: when receiving new messages, the program, for example, sends the same person data about the message (sender id, message and time). And here I have the following questions:

1) Is there any method in sdk that will be executed when new messages are received? Or do you need to manually check?

2) How to process the received data?

Thank you in advance! :)

  • the method of work is ... directly at the API is described in the docks vk.com/dev/using_longpoll - Alexey Shimansky
  • Everything is described there, how it should work in theory, but I would like to see the real code. It is a pity that in the documentation for android there is nothing really and do not say ... - Vitali

0