I'm trying to use LiveData with the Content Provider on Android, however I cannot manage it because the Provider query method is as follows:
public Cursor query
so it returns a Cursor, while I need a LiveData. If I try to change the return type for the query method to
public LiveData<Cursor> query
I get the error:
"error: query(Uri,String[],String,String[],String) in FaProvider cannot override query(Uri,String[],String,String[],String) in ContentProvider
return type LiveData<Cursor> is not compatible with Cursor"
Is there any solution for using LiveData with Content Provider?