You need to get the user id under which you entered the application, how to do it?

    1 answer 1

    Pretty simple:

    It is stored here: 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; }