Good afternoon, I do registration through vk in my mobile application.

There is such a method public void onResult (VKAccessToken res), and as I understand it

res - this is the token, which is issued after authorization through VK.

If you put this res in the log, we will see com.vk.sdk.VKAccessToken@531dd110213k23

As I understand it, the record after @ is the token. Ie the token is "531dd110213k23" here is this entry.

Actually the question is how to get a clean token (which is after a doggie) from res (com.vk.sdk.VKAccessToken@531dd110213k23), because it is not a fixed size, and maybe a long one?

    1 answer 1

    in v callback

    @Override public void onResult(VKAccessToken res) { // это будет твой токен res.accessToken; }