I did something similar. I donโt know what programming language you are programming in, but I use QT. So I wanted to connect to the database. I made this approach. Write SQL scripts that will process your XML code. For example, you want to return only a certain part of the database, and not all. Then I wrote PHP scripts as part and a mid-level application, something to handle the connection and send certain message parameters that tell me what to send back or what to do in the database. Then I made a script to convert everything to XML and send it back to QT and present the data in my GUI. Using scripts when working with a database is good, because you can change it to any desired database. For example, I used it for an Oracle database. Since the oracle database for android does not have automatic synchronization, I made my scripts handle all of this. I hope my example helped you understand the approach I used. I canโt say that 100% is the right way, but it works correctly for me. Good luck
source share