I am doing a registration page for my application.For this I need to insert the registration details in to sqlite DB.Once the registration is done,the edittext fields should display those details fetching it from database and the submit button and text fields should be disabled to stop from a second time registration.Can anyone suggest the suitable way?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Check code for database in the following link Android SQLite
You have to store the value in an arraylist and which is retrieved from database and set the value to the edit text as
After the data is retrieved, you have to check the condition whether
editText.getText().toString()
length is greater then zero you should not allow them to edit the text ineditText
by using followingYou can write/read into database easily: read this for more details: http://developer.android.com/guide/topics/data/data-storage.html#db and this http://mobile.tutsplus.com/tutorials/android/android-sqlite/
To get data from edit text, you can do this:
myEditText.getText().toString()