Answer the question
In order to leave comments, you need to log in
VK API. Android. How to get access_token?
Hello.
I make a request like this:
Uri authUri = Uri.parse("https://oauth.vk.com/authorize?client_id=*******&scope=friends,messages&redirect_uri=https://oauth.vk.com/blank.html&display=mobile&v=5.24&response_type=token");
Intent auth = new Intent( Intent.ACTION_VIEW, authUri );
startActivity(auth);
Answer the question
In order to leave comments, you need to log in
I don’t know how in android, but in the general case, you need to run not a browser, but an embedded webview component, in which, just after a redirect to blank.html, you can take data from the url and then parse it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question