I'm building flickr api to upload photos! Every time I run my application, It goes through the whole process of requesting for access token! I want if the user has authorize my app, then she don't need to authorize it again. How can I handle access token for this scenario as well as how to handle expire access token.
What you could do is save your access token into your shared preferences. Then the next time your app loads you could read it from your shared prefrences and use it in your authentication. If it turns out that the token has expired then simply call your method for getting a token and save it over the expired one.