I am trying to run sample code from Google Quickstart for Java on an Android emulator, but the code falls on line
return new AuthorizationCodeInstalledApp(flow, receier).authorize("user");
It turned out that Android does not support this class, so you need to manually catch the URL address for authorization, open it in the browser and then shove the result into the Credential object. I am familiar with Java superficially, so I have little idea how this can be implemented.
Can you please tell how this can be done? Maybe there are any classes of analogues for this kind of tasks?