Retrieving access token from SharedPreference
ClassCastException is not a checked exception, and so it's not a normal practice to catch it. You can omit catching this exception. However, you should make sure your application will never store values in shared preferences that would raise such errors.