0

I have an activity which has a database query and it brings back 300 records from the query. Now I move to another activity and make changes in the same database. Now when I return back to the first activity and refresh the database by making the same query, I get 600 records.

Can anyone please suggest where I am going wrong?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Some one Some where
  • 777
  • 1
  • 8
  • 26
  • Without seeing your query or what happens in the other activity, it is not really feasible to guess what's going wrong. Did you clear (reset? empty?) the in-memory result set when you went back to re-query the database? If you restart the application, do you get 300 or 600 results from the query on the first pass? – Jonathan Leffler Feb 19 '12 at 19:22
  • Actually I realized its the UI, that tends to show this problem and not the Database query, the Results turn out to be 300 everytime, its just that the UI doesn't refresh the Data and keeps on adding to the previous Data. Sorry for the hurry and not realizing the actualy scenario. – Some one Some where Feb 19 '12 at 19:44
  • Seems that the issue wouldn't be with the Queries made by me, rather its dependent on the UI rendering pattern i have been following, the question has been put again for issue regarding the page curl animation which fails to render or refresh the given pages. – Some one Some where Feb 19 '12 at 21:02

1 Answers1

0

Seems that the issue wouldn't be with the Queries made by me, rather its dependent on the UI rendering pattern i have been following, the question has been put again for Harism Thanks again everyone, helps everytime i am here, cheers!!

Some one Some where
  • 777
  • 1
  • 8
  • 26