Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

simple Android Basic HTTP Auth using PHP! If someone could please help me with m

ID: 640547 • Letter: S

Question

simple Android Basic HTTP Auth using PHP! If someone could please help me with my android app project.

Problem: I'm developing an application that performs a POST request and gets a JSON response from the server (JSON). The problem is, in the server-side, I don't want another app consuming the response, only my app (think like your facebook account, you perform some queries against the server and it returns a json to your facebook app, so you can see the results). The difference is, there is no need for a user to create an account to use the app, anyone can use it. What is the best way to protect the response from the server ?

Explanation / Answer

Solution provided please use below download url:

https://dl.dropboxusercontent.com/u/20998734/JSONParser.java