API to connect Android with a local database [closed]

2

I am currently using Firebase to store the data generated in Android. My intention is to change Firebase for a local Mysql database that I would have in a computer that would serve as a server. My question is, is there an API to make this connection and not have to do everything by hand?

If not, what would be better to use to secure connections, SSH or Apache connections?

    
asked by qwerty 15.08.2018 в 12:54
source

1 answer

-2

Android is not compatible with MySQL from the first moment. The "normal" way to access your database would be to put a Restful service in front of the database and use the HTTPS protocol to connect to the Restful user interface.

If you want more information, I recommend you take a look at ContentProvider . It is normally used to access a local database (SQLite), but it can be used to obtain data from any data store.

    
answered by 15.08.2018 в 14:50