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 trialjason wong
30 PointsHow to connect local admin panel with my Android application in my Android Studio?
Currently I am setting up an android application, but I'm having a problem with the database connection with my app. I had setup a admin panel to connect with the MySQL database but still unable to connect with the application on Android studio.
1 Answer
Seth Kroger
56,413 PointsThe recommended way to connect Android to a remote shared data store (which could be MySQL, PostgreSQL, MongoDB or any other) is to set up a RESTful web service as a go-between for the app and the database. Direct access is never recommended on security and performance/connection grounds.