title: How to add an activity to tab?
body: <p>I have started working the customizing the Tabs in Tablayout, so i followed this tutorial <a href="http://joshclemm.com/blog/?p=136" rel="nofollow">http://joshclemm.com/blog/?p=136</a> 
  which works fine. But the doubt is that i cant find out how to add an activity to each tab in this tutorial , i have tried but didnt find the solution.</p>
  
  <p>In general we use </p>
  
  <pre><code>    TabSpec spec = tabHost.newTabSpec("Photos");
      spec.setIndicator("Photos");
  
      Intent photos = new Intent(this, Photos.class);
      spec.setContent(photos);
  </code></pre>
  
  <p>But dont know how to add an activity in this situation.</p>
  
  <p>Can anybody help me get rid of this ?</p>
  
  <p>Thanks. </p>