android - fetching data from database and set it on edittext -
i doing registration page application.for need insert registration details in sqlite db.once registration done,the edittext fields should display details fetching database , submit button , text fields should disabled stop second time registration.can suggest suitable way?
check code database in following link android sqlite
you have store value in arraylist , retrieved database , set value edit text
// myarraylist arraylist contains // data retrieved database edittext.settext(myarraylist.get(0));
after data retrieved, have check condition whether edittext.gettext().tostring()
length greater 0 should not allow them edit text in edittext
using following
edittext.setfocusable(false);
Comments
Post a Comment