Re: [android-developers] distinct with ContentResolver

2012-07-04 Thread Dianne Hackborn
The ContentResolver query() API is very specifically intended to not be a full SQL query interface. If you have a specific kind of query you want to do, in your ContentProvider implementation add a new URI to the set you match that builds that query with the given arguments. On Wed, Jul 4, 2012 a

[android-developers] distinct with ContentResolver

2012-07-04 Thread Live Happy
how i can add ' distinct' to contentResolver query i tried to use it by projection String[] projection = new String[]{ "DISTINCT "+ Columns.types }; but it return error unknown columns in projection and i found an answer suggesting the use of a specified uri and matcher and queryB