+ 2

How do I use php for my android app

How can I use php for my android app, as it is a server side language? I am using html too..

15th May 2018, 6:35 AM
Manan
Manan - avatar
3 odpowiedzi
+ 2
You can create php script that does some sql queries, for example, and outputs collected data in Json. Then, you can retrieve your data with android app using retrofit/volley and deaerialise it into POJOs with Gson.
15th May 2018, 8:25 AM
Roman
Roman - avatar
+ 2
Roman Thanks a lot... hope it works...
21st May 2018, 12:43 PM
Manan
Manan - avatar
+ 1
@Manan I'm using exactly this approach in my android app, so it must work ;)
21st May 2018, 12:46 PM
Roman
Roman - avatar