When I compile the following code
cursor = activity.managedQuery( imageUri, proj, null, null, null );
I get following warning
The above answer is very apt. I just wanted to add to this thread more info as to why managedQuery is deprecated. Here is a nice explanation for why the managedQuery is replaced by getContentResovler().query()
managedQuery
getContentResovler().query()