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

How could a website retrieve data from an Android app , means uses its datasource?

I have an idea to use my phone to capture pictures to post on a web , so far i have learn that : An Android app can retrieve data from a website , but what i want is : a website that can display data receive from an Android app . I use Parse.com as back end and don't know how to access its data via website . I know it's possible cause some games can sync data between Phone application and their same game on facebook (like Candy Crush Saga , Hero of Dragon Age ...). I would want to know a way to do that . Is there any course about that on teamtreehouse.com ? Thanks.

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Tony;

There is a PHP SDK available for Parse that would potentially be an option.

From a technology standpoint layout what you are wanting from a high level and then figure out how to make the pieces fit, something like:

Web application that has the ability to offer the same/similar experience on a native mobile app. What will that take? A centralized data source and the ability to hook both the web and mobile apps to that same data. What happens to the mobile experience if they are not able to connect to the data source? Do you store the data locally and then sync it once a connection returns? Lots of additional questions, but that is a basic start.

Then work on the technology. What data store are you wanting to use? What language/framework are you wanting to use? Parse has options for .Net and PHP but not for Ruby, for example. So if you were planning on building your site with Rails, Parse may not be the best solution.

Lots of high level thinking would go into this project, in my opinion, before the coding begins. Then as you build the project you would want to make sure that you are building it in a way that is accessible for all use cases.

Just my humble thoughts,

Ken

Hi , after installing PHP SDK ( i have to go through some troubles with it because there's no tutorial ) . Finally i can add data to Parse.com from a php file . Thanks for your instruction Ken Alger ,