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 Build a Self-Destructing Message Android App Adding Users Using Parse.com Creating an Account and App on Parse.com

Emmanuel Audu
Emmanuel Audu
1,074 Points

Hi, besides using parse.com, can i just create a database in my ipage php admin and use it to store my apps information?

Can i store my users and apps information in my ipage database?

2 Answers

Angelos Hadjiphilippou
Angelos Hadjiphilippou
1,600 Points

Hi. I'm not aware of parse.com, however, the answer you are looking for would be yes and no ;) Allow me to explain.

a) YES you can store data in your external database and retrieve them using various methods. b) Worry about security. If you include your credentials to login to your mysql database in the app, note that any decent developer with a "rooted" device can actually decode your apk and see those. (Use encryption and preferably "proguard")

if you really need to use external data, i would suggest creating a small php (Or other) api to request data via url (You can then use okHttp as seen in the Treehouse weather app)

If storing data externally is not a pre-requisite, note that you can use internal device storage by using SharedPreferences and store any data locally as well as retrieve (Note this data resides even after the app is closed and re-opened)

Hope this helps a bit in deciding your route. Happy to elaborate if you need further assistance.

cheers

Emmanuel Audu
Emmanuel Audu
1,074 Points

Thank you. It helped alot.