You can access the result, as well as any other query. The only difference is that it is possible to name conflicts, the same column name for both tables. To resolve these conflicts, you need to use the table name as a prefix.
for instance
Long id = c.getLong(c.getColumnIndex(tableName1 + "." + idColumnName));
If this approach does not work. You should write your request as follows:
String query = SELECT table1.id AS table1_id FROM table1 INNER JOIN table2 ON table1.id=table2.id WHERE name like '%c%'; Cursor c = newDB.rawQuery(query, null);
And one more general note: it is better not to use "Select * ...", it is preferable to write explicitly the column that you would like to select.
source share