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
chandlerknaus
1,635 PointsCan 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.
1 Answer
chandlerknaus
1,635 PointsThank you for the information!
Alessandro Calorì
10,241 PointsAlessandro Calorì
10,241 PointsAndroid 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.