質問

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