I have a problem, properly just cause of confusion, when fetching programs through the ContentResolver for a channel, with a selection variable..
I get the following exception:
java.lang.SecurityException: Selection not allowed for content://android.media.tv/program?channel=5
I can fetch all the programs for a channel without problems, but when i add the selection (where-clause) to the query-method, i get the above security exception, no matter the selection string, even on 1=1:
Cursor cursor = resolver.query(programsUri, null, "1 = 1", null, null);
I find it really weird, since i don't have problems fetching all programs for the channel with:
Cursor cursor = resolver.query(programsUri, null, null, null, null);
I was told by a colleague that this is due to my app not being a system app on the device i am developing on, but again i find this weird, since i am allowed fetch all the programs without the selection-property, so why would it require extra permissions in order to do a where-clause? Really hope someone can help me out, since it would be nice not to be forced to fetch all programs and do the selection-filter my self, but use the supplied selection-property.. Thanks in advance :-)
OBS: The channel (?channel=5) is created by the app and not a third party tv-input channel.