I
I
Ilya Miroshnichenko2018-02-25 00:03:01
Android
Ilya Miroshnichenko, 2018-02-25 00:03:01

How to store access_token in android application?

I am writing my first app in Android Studio. Task: user authentication through Vkontakte.
How to save the access_token so that you don't have to authenticate every time after restarting the application?
There is no detailed manual in Google, I'm picking vk_sdk, but so far it's hard to get into.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aldevex, 2018-02-25
@Aldevex

Save to internal memory, to database, sqlite

I
Ilya Pavlovsky, 2018-03-01
@TranE91

As far as I remember, vk_sdk stores access_token inside, but this is not accurate.
SharedPreferences for such purposes is the best way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question