+ 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.
1 Resposta
+ 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/