you can create a generic call function for API cal...
# android
m
you can create a generic call function for API calling and check response code of every api response so if response is not authorized then log out the user