Background
I designed a rest api that acts as a interface between my android app and mysql database.As a user logs in to the app,an api key is returned from the database by the api in form of json object(along with other details).Volley parses the json object and retrieves the api key.All the further calls to the api are made after the api key is authenticated in request header.
Problem
I want to know the best way to store the parsed api key to a variable which can be used by all the activities globally to send requests to api through volley.