In the application, the database is accessed via the CursorLoader and ContentProvider. The data cursor is created in the method:
public Loader onCreateLoader( int id, Bundle args ) { Loader cur; cur = new CursorLoader( this, ContractClass.Data.CONTENT_URI, ContractClass.Data.DEFAULT_PROJECTION, null, null, null) return cur; }
It is necessary to create a query to the database to join two tables. As I understand it, such a query can be executed only with rawQuery (); There are some difficulties. I don’t understand how to fulfill a raw request through a loader. In general, initially in the application, access to the database was made through the heirs of AsyncTask, then I was advised to use ContentProvider. The application was rewritten for it, and from that moment all the difficulties started, I don’t understand at all, why use it if you don’t need to share the application database. Maybe better roll back before it's too late?