5

Can i notify a cursor after a new record is inserted in a table without using a ContentProvider?

I saw this question - he said that he used the requery() method.

And the first answer use a ContentProvider - note: I want to use this data only within the application

Any suggestion?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
confucius
  • 13,127
  • 10
  • 47
  • 66

1 Answers1

0

if you're not using content providers and cursorloaders, you have to go old school. Your DB curser should have a "requery" invoked. The documentation warns against this expensive code, but that's why they made cursorloaders - to address those issues.

Martin
  • 4,711
  • 4
  • 29
  • 37