Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String enStr = "en", deStr= "de";
- String[] projection = {
- _id,
- en_word,
- de_word};
- String selection = "translate_id = ?" + " AND "
- + "en_id = ?" + " AND "
- + "de_id = ? ";
- String[] selectionArgs = { String.valueOf("1"), "en", "de" };
- return new CursorLoader(this, // Parent activity context
- currentUri,
- projection, // Columns to include in the resulting Cursor
- selection, // No selection clause
- selectionArgs, // No selection arguments
- null); // Default sort order
- SELECT
- _id, en_word, de_word
- from
- translate, en, de
- WHERE
- translate_id = 1 AND en_id = ? AND de_id = ?;
- String enStr = "en", deStr= "de";
- String selection = "translate_id = 1" + " AND "
- + "en_id = " + enStr + " AND "
- + "de_id = ? " + deStr;
- return new CursorLoader(this, // Parent activity context
- currentUri,
- projection, // Columns to include in the resulting Cursor
- selection, // No selection clause
- null, // No selection arguments
- null); // Default sort order
- SELECT
- _id, en_word, de_word
- from
- translate, en, de
- WHERE
- translate_id = 1 AND en_id = en AND de_id = de;
Add Comment
Please, Sign In to add comment