Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update not Insert #5

Open
vds2014 opened this issue Aug 17, 2012 · 1 comment
Open

Update not Insert #5

vds2014 opened this issue Aug 17, 2012 · 1 comment

Comments

@vds2014
Copy link

vds2014 commented Aug 17, 2012

Hi Daniel.
Great job!!!!!!!!
Easy to use.... very nice!!!!!

My friend, I´m at begin in java (android) and I really don´t know to to do that.
As I could see, you extends from a ListView to do the own List that updates but it insert "new " records.
I´m getting my data list from a table in the webserver... I need to refresh my list, not insert all records again.

If I have one record at database, at first running, my list have one item, but if I refresh first time, I get two itens, that same record because in the database in this case has only one register... in other words, I´m duplicating the itens in the list adding the same...how to it only to refresh the list???

Thanks for attention

@vds2014
Copy link
Author

vds2014 commented Aug 17, 2012

FORGET IT!!!!!! kkkkk ;-)
Just setAdapter to NULL before do refresh and notifyDataSetChanged
Thanks for attention!!!!!!
Once again... congratulations!!!!!! Great job!!!!!!!!!!!!!!! ;-)
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant