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


Simone Esposito
Simone Esposito
Courses Plus Student 41 Points

Android App and server

Hi, sorry for my bad english, but I'll try anyway to explain my question.

I learn the android basics (with java and android studio) at my school and for an exam I wrote an application that has the functionally make car sharing (like bla bla car). So, I separated in two part my Porject: 1 - java code - all logic that the application need for run (like send data, check user input, google maps,...) 2 - php code and sql - used for the relation with a remote db.

I found this way a really bad way, because I think isn't not performance and secure way. So, my question is really simple: which way is the best one for do this app. I mean, what logic/method (or library) I need to implement for do this Project?

For example, in a java application I implements this logic with a client and a server who are written in java. The client send a request to the server and wait for the answer and than show to the user the answer.

Thank you, Simone Esposito

1 Answer

Ben Jakuben
Ben Jakuben
Treehouse Teacher

You might be interested in our Firebase content, which shows how to create an app that sends and receives data over the Internet, much like you're talking about doing. You can certainly do it with PHP as your server, but Firebase adds security and easy functionality that generally beats building your own server components.

Ideally, I'd recommend you work through our Beginner Android track and then tackle these two Firebase workshops. The Build a Weather App course specifically is similar to some of what you're trying to accomplish.