You need to get the user id under which you entered the application, how to do it?
Pretty simple:
It is stored here: VKAccessToken.currentToken().userId;
VKAccessToken.currentToken().userId;
This is how you can safely recognize it:
int getMyId() { final VKAccessToken vkAccessToken = VKAccessToken.currentToken(); return vkAccessToken != null ? Integer.parseInt(vkAccessToken.userId) : 0; }
Source: https://ru.stackoverflow.com/questions/630272/More articles:Xamarin Java.IO.File.ListFiles with root rightsApply box-shadow to one side onlyEliminate duplication of code in functions with different constancyHow to load a file with COPY FROM?Creating a self-signed wildcard SSL certificate for developmentIs the javac compiler a static compiler?Where to find the x32 bit ODBC driver for psqlodbc_09_05Eloguent ORM Query Designer how to add parentheses in conditionMoving the car 10 metersWhat is the purchase of a domain name from a technical point of view?All Articles