Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Can 2 separate apps be compatible?

I am not fully done with my lessons but I was just thinking like could I make a blogging app and then another app for like messaging but they both link with each other? So if I make an account on the blog app I can sign in on the messaging app with the same account kinda thing? If its possible do you need like a data base or would it all work through code? This might be a really stupid question but I am no expert! Thanks.

Android does support natively account management shared across applications. This means that you can write different apps which uses the same kind of account. Google account is shared among every Google application (Gmail, Google+, ...).

See here: http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step-2

If you want to share a database across applications you can use Content Providers which abstract this concept.

See here: http://developer.android.com/guide/topics/providers/content-provider-creating.html

Unfortunately Treehouse courses do not cover this kind of information. In my app I use Android account management and I also did some testing using Content Providers. It is very hard to find some place to get good information about this.

1 Answer

Thank you for the information!