简体   繁体   中英

Is there any way to run my android app on android device by localhost

I am using MySql database in my android app, can you tell me how can i run it on my android phone ratter than running it on emulator.

If you want to persist data in your app, Android by default has SQLite library pre-installed. Here you can see the tutorial how to use it. https://developer.android.com/training/data-storage/sqlite

But as they recommend on their landing page, it is much easier and convenient to use Room library, which works as ORM tool for SQLite on your device. Here is the link to room library.

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