I am using the picasso library to download the bitmap so in the api I need to pass the token in the headers. I tried below code from this thread Android Picasso
picasso
Picasso 2.5, The okHttpDownloader has changed. Please refer the below link to add the authentication headers
https://github.com/square/picasso/issues/900