Android EditTexts AutoSave -


i have database object includes lot of string fields. right now, these string fields managed user through activity lot of edit texts. however, i'm having trouble saving of information edittexts database. i've tried doing when activity calls onpause not working how (i'm using listview edittexts it's hard if views there). i've been looking @ text watcher seems tedious add 1 every edittext, of created dynamically.

i've considered extending edittext , implementing use textwatcher i'm again not sure best way go this.

anybody have suggestions on how can accomplish this? help.

i should hold reference each of these edittext objects in arraylist , use array list adapter provide data listview.

when of edittext's changed can call notifydatasetchanged on adapter. in onpause method can loop thru arraylist , save each database.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -