Closed MkazemAkhgary closed 5 years ago
ActiveAndroid's ContentProvider.createUri
is not documented. The second parameter of createUri()
is an entity ID.
how do I know this? Just read from the source code of com.activeandroid.content.ContentProvider.
I assume that CursorLoader
class comes from Android SDK. Here's a documentation for its public constructor: CursorLoader(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
Your SQL query contains WHERE
clause, so you probably need to use selection
and selectionArgs
parameters of the constructor. See this question for a usage example. Browse Stack Overflow and Github for more examples.
IMHO this kind of questions is not a fit for Github Issues. You have better chances to find the answer at Stack Overflow.
@naXa777 thanks a lot for the answer. my bad, i will try to ask only relevant questions here.
where is documentation for
ContentProvider.createUri
?So i want to filter items from myModel table. i think it has to do with these null parameters?
what i want is