Reputation: 197
How can I construct a URI to table MediaStore.Files.FileColumns ? I try like this:
Uri uri=Uri.parse(MediaStore.Files.FileColumns);
But in Eclipse "MediaStore.Files.FileColumns" is underlined. I guess, I do this wrong. How to correctly construct a URI?
Upvotes: 0
Views: 132
Reputation: 75645
FileColumns is interface. You cannot reference interface. If you need explicit column, use
Uri uri=Uri.parse(MediaStore.Files.FileColumns.<COLUMN>);
for example:
Uri uri=Uri.parse(MediaStore.Files.FileColumns.MEDIA_TYPE);
Upvotes: 1
Reputation: 39856
MediaStore.Files.FileColumns is an Interface, the method Uri.parse() receives a string.
Upvotes: 0