Just trying out a couple of Android samples. Struggling to find the method managedQuery
Compiler keeps reporting:
The method `managedQuery(Uri, String[], String, String[], String)` in the type Activity is not applicable for the arguments `(Uri, String[], null, String)`
Is this because it’s deprecated? Thought I would just get a warning for this.
It is deprecated, but the reason why you see that error is simply that your parameters don’t match up with the arguments. Exactly as the error says, you’re giving it:
and it expects
You have 4, it expects 5.