0

I'm not able to get a cursor after a query to the content provider

I've rearranged uri, rebuilt the table, old code that has been updated to androidx, I'm initiatialzing the table in the Provider:

uriMatcher.addURI(authority, path_name, #);

@Override
public boolean onCreate(){
table = new table_name(context);
}

No error messages I'm getting a null cursor returned. I think it might have something to do with the URI but when debugging I'm not hitting the query method of the Content Provider.

2
  • Share the complete class Commented Aug 27, 2019 at 20:13
  • Yeah, we need a lot more information. There are several places where this could go wrong. Please provide a minimal reproducible example. Commented Aug 28, 2019 at 12:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.