+ 1

PHP - Android Java

If you know:: I want to connect my android app to my website. I'm very beginner in this. Could you say what I would to do. I learnt that I should Create a php and upload it on my hosting and than connect with Java net functions. Please describe.

10th Dec 2017, 11:54 AM
AA Shakil
AA Shakil - avatar
1 Answer
+ 2
Well I've connected my Node.js server with my Java client using Retrofit framework. But you can use the framework for connecting Java (Android) client, with any server or API which support RESTful (HTTP) protocol. If you don't want to use any third party frameworks, you can use Java WebSockets to connect the socket with the PHP server. But I'd recommend to use any framework that abstracts the low level logic, like the Retrofit. Simple create POJO classes, fire relevant methods, and store callback data in the objects of those POJO classes. No need to care about the low level logic. It helps in developing apps quickly. http://square.github.io/retrofit/
10th Dec 2017, 3:37 PM
Sarthak Joshi
Sarthak Joshi - avatar