开发者

Handling multiple accounts in Android app

开发者 https://www.devze.com 2022-12-29 17:16 出处:网络
I would like to build an application that caters for multiple accounts (eg. home, work) and account types (e.g. ISP, VoIP, Mobile). Essentially, I would like to get the user to create the accounts the

I would like to build an application that caters for multiple accounts (eg. home, work) and account types (e.g. ISP, VoIP, Mobile). Essentially, I would like to get the user to create the accounts they want and then have all the accounts listed on the start page grouped by type. For example:

ISP: - Home - Work

Mobile: - Mum - Dad

When you click on the 开发者_开发百科account, it would take you to another screen where I do a bunch of calcs and display the results.

I currently do this via multiple apps but am looking at consolidating into the one app. I am just not sure where to start or how I go about achieving this? The way the Contacts app works is a good example of what I am wanting to do.


Have an Account table. Have a foreign key to the Account table in all your other tables. When querying, filter based on the current Account.

0

精彩评论

暂无评论...
验证码 换一张
取 消