title: Android Tv: get list of channels
body: <p>I've installed the androidtv-sample-inputs so I can fake some Tv inputs and have some channels and I wanted to get information about that channels, however, when I query to get that information I get an empty cursors.</p>
  
  <p>What i've tried so far is:</p>
  
  <pre><code>TvInputManager tv = (TvInputManager)getApplicationContext().getSystemService(Context.TV_INPUT_SERVICE);
  
      List&lt;TvInputInfo&gt; list = tv.getTvInputList();
  
      String[] projection =  {
              TvContract.Channels._ID,
              TvContract.Channels.COLUMN_DISPLAY_NUMBER
      };
  
      ContentResolver cr = getContentResolver();
  
      Iterator&lt;TvInputInfo&gt; it = list.iterator();
      while(it.hasNext()) {
          TvInputInfo aux = it.next();
          Uri uri = TvContract.buildChannelsUriForInput(aux.getId());
  
          Log.d("TAG", uri.toString());
          Log.d("TAG", aux.toString());
  
          Cursor cur = cr.query(uri, projection, null, null ,null);
          Log.d("TAG", cur.toString());
  
          if(cur.moveToFirst()) {
              Log.d("TAG", "not empty cursors");
          }
  
      }
  </code></pre>
  
  <p>I have already added the uses-permission and I've checked that the tv input are not pass-through.</p>
  
  <pre><code>&lt;uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" /&gt;
  &lt;uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" /&gt;
  &lt;uses-permission android:name="com.android.providers.tv.permission.ACCESS_ALL_EPG_DATA"/&gt;
  </code></pre>