I have an app which user can login and each user have different profiles. We are maintaining separate db, separate shared-preferences with different names for each profile. Whenever we switch profile, we get data from respective db/shared-preference.
Is there any API like maintaining a single db/shared-preference for multiple profiles - something like each profile will have a separate app data, so that we need not to create separated shared preference/db with different name for each profile. Each profile can have shared-preference/db with same name. So, each profile have its own app-data but same shared-preference/db names.
I guess accounts in android will have separate app-data, but here we need to have separate app-data for profiles.