But I think that you can use associations with content providers. If you complete two queries, you can join them using CursorJoiner. I use it and it works well.
Snapshot from Android docs:
CursorJoiner joiner = new CursorJoiner(cursorA, keyColumnsofA, cursorB, keyColumnsofB); for (CursorJointer.Result joinerResult : joiner) { switch (joinerResult) { case LEFT: // handle case where a row in cursorA is unique break; case RIGHT: // handle case where a row in cursorB is unique break; case BOTH: // handle case where a row with the same key is in both cursors break; } }
this is not exactly the same as the SQL join, but it is useful. In each case, you can manipulate both cursors that point to the processed line.
source share