Advise, as the most recent sources or literature, in which you can learn about connecting android applications with MySQL using PHP and Json and examples of them.

I looked at various sources: in some the methods became outdated, in others they used their libraries, in the third they were not at all in Russian or English.

Literature or articles preferably in Russian, but if not, then go in English. Interested in the basic operations of adding, selecting, deleting and updating data in the database.

  • On Android in general, Java is used. What side is PHP here? - Daniel Protopopov
  • @DanielProtopopov PHP in terms of server language, the layer between Android and MySQL - danilshik
  • Be specific and write more accurately, then it will be more clear what you need. MySQL, again, with Adroid or with PHP to be used? - Daniel Protopopov
  • Android sends parameters and waits for responses from the PHP page, which makes requests to the database - danilshik
  • @Daniel Protopopov Android expects responses in json format - danilshik 5:02 pm

1 answer 1

The question is very extensive, but I will try to give the author at least the direction "where to dig."
As options (the list is not complete):

  1. REST API + JSON , the old proven method with its pros and cons. Easy googling ( Retrofit + GSON ) for Android, for PHP sure that, too.
  2. GraphQL , a new perspective direction, is more difficult from a technical point of view, but more elegant in terms of architecture and flexibility of data exchange.

So break your task into two parts (client and server), select the data exchange protocol and decide independently.

https://graphql.org/