简体   繁体   中英

How to connect to SQLite Database that's on my PC from Android phone using Wi-fi?

I have to make an app for Android that can connect to a local SQLite Database that is on a computer (the Android phone and the computer are connected on the same router with wi-fi) and just use the data from the database in my Android app. Is there any way to do that without making a server? Can I access the database if I know the IP address of the computer and the directory where the database is stored on the computer and if I can, how??

Thank you in advance!

No, you cannot do this without making a server. The server would be required to allow the device to communicate with the database.

You don't have to make server on your own computer (of course u can), but you can use https://www.elephantsql.com/ .

You can access to the database using jdbc http://www.tutorialspoint.com/jdbc/jdbc-create-database.htm .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM