+ 1

Can I create an app for Android in php? And how?

Okay then. I know webpages like facebook are based on php and mysql, and yet the have a nice app working so well. Now that I've learnt a bit more of php, I would like to create an app for an online game I play since long time ago (I don't know if I can say the name or it will be considered advertising, but it's footiegame -it's in spanish-). So that online game is full written in php, I mean, all the pages are "something.php". Is it possible to create an app for that game using php or I need to write it in another language? If it's possible, which programm/tool/whatever do you recommend me to start working with? If anyone has more advices they will be welcome. Thank you! PS: Sorry for bad English

3rd Mar 2018, 11:12 AM
Dani B
6 Answers
+ 1
i think "phonegap" is what you looking for https://phonegap.com/
3rd Mar 2018, 11:18 AM
caheamt
caheamt - avatar
0
Thanks for that link! I'll try it! But I still have the same question. Can I write an app using php?
3rd Mar 2018, 11:28 AM
Dani B
0
Ok, so answering myself. I cannot create PHP apps, but I can create a java-sql app. I'm too noob at this, I didn't even know that it is possible to connect java or other languages with sql.
3rd Mar 2018, 4:01 PM
Dani B
0
i use phonegap too all u need is html javascript and css when you need to connect to your server just use javascript to post to your php
3rd Mar 2018, 4:11 PM
caheamt
caheamt - avatar
0
var http = new XMLHttpRequest(); var url = "get_data.php"; var params = "lorem=ipsum&name=binny"; http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { alert(http.responseText); } } http.send(params); https://stackoverflow.com/questions/9713058/send-post-data-using-xmlhttprequest
3rd Mar 2018, 4:14 PM
caheamt
caheamt - avatar