Resolve "Multiple accounts"
- Set the Android Account name based on the instance's account name.
- Insert a row into the Account table with all the instance's account data plus the instance's API URL and the human-readable account name.
- When the Android Account is removed from the system, delete the row from the Account table.
- Track the current account via a SharedPreference named
AuthActivity.ACCOUNT_NAME
. - Instead of creating the
Api
instance in the activity, ask thecurrentAccount()
for anApi
instance.
Edited by Mike Burns