문제

When using the insert() method of the SQLiteCursorLoader class, is there a way to get the row ID that was returned as a result of the insert?

도움이 되었습니까?

해결책

Not presently. I'll look to add that support someday via a callback. Right now, what you can do is subclass SQLiteCursorLoader and override insert(), supplying your own clone of InsertTask that holds onto the row ID and does something with it, perhaps from onPostExecute().

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top