americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

Favorite Channels #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please describe the feature you're requesting in as much detail as
possible.

If you're an application developer and are requesting new APIs, please
include sample code showing how you are proposing the API should be used.

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Currently both the Live TV app and the TV & Movies app allows a user to specify 
their favorite channels. However, these are completely separate lists. It would 
be better to have a system-wide list of favorite channels for the user. Also, 
it would be good to have an API so that other apps can get the list of favorite 
channels and also add to the list of favorite channels. The existing channel 
listing content provider could be extended to indicate which channels are 
favorites:

Uri mProviderUri = Uri.parse("content://" + "com.google.android.tv.provider" + 
"/" + "channel_listing");
String[] mProjection = {"channel_uri", "callsign", "channel_number", 
"favorite"};
Cursor mCursor = getContentResolver().query(mProviderUri,               // the 
content URI of the provider
                                            mProjection,                // the columns to return
                                            null,                     // the column to match against
                                            null,                  // the matching value
                                            "channel_number" + " ASC"   // the sort order
                  );

Original issue reported on code.google.com by entertai...@gmail.com on 24 Apr 2012 at 3:08

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 7 May 2012 at 6:52