S
S
sundrey2015-12-12 18:32:37
Java
sundrey, 2015-12-12 18:32:37

How to display the received token in the VK SDK on Android?

I am writing my first Android app and needed to get an access-token for further processing. Authorization passes, but so far it is not possible to withdraw it. Which class should be accessed and how to get its normal form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sundrey, 2015-12-12
@sundrey

I figured it out myself. In the VK SDK, the token is obtained from the GET parameters of the URL returned after authorization, whether through oAuth or through the native application.
To process the token, it is necessary to intercept it when executing the VKAccessToken tokenFromParameters function. It will be returned when calling parameters.get(ACCESS_TOKEN);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question