简体   繁体   中英

How do I connect a database to an Android app?

I am new to Android development and I am working on building an app. I am currently stuck on the log-in screen because there are no up to date tutorials that can walk me step by step into creating and linking a database.

I would like to have a database so that when the register button is pressed, the information is stored into a database.

I currently only have activity_main.xml and MainActivity.kt, the basics of creating a blank activity.

There are up to date tutorials for everything if you just do a quick google search. There are a number of different techniques. Here are a few up to date things provided by Google that I will encourage you to learn and experiment with:
Room Persistence Library
Android Room with a View - Kotlin
Using Room Database | Android Jetpack

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