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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -