title: AndroidStudio project that supports both Android and AndroidTV
body: <p>I'm trying to create an AndroidStudio project that supports both Android (phone/tablet) and AndroidTV.  The goal is to have similar functionality on the Phone/tablet and AndroidTV, while one not needing the other to operate, and reusing code.</p>
  
  <p>When I create a new project, do I:</p>
  
  <ul>
  <li>a) Put a check mark on both "Phone and Tablet" as well as "TV"?</li>
  <li>b) Check mark on "Phone and Tablet" and retrofit based on this guide: <a href="https://developer.android.com/training/tv/start/start.html" rel="noreferrer">https://developer.android.com/training/tv/start/start.html</a></li>
  <li>c) Check mark on "TV" and retrofit a Main Activity?</li>
  </ul>
  
  <p>I've tried b) but both the phone (5.0) and ADT-1 just get the same layout.</p>
  
  <p>Below is my manifest file (MainActivity is placed before MainActivityTV).  When I run it, both phone and ADT-1 load the phone layout.  But, when I put MainActivityTV before MainActivity, both my phone and ADT-1 load the leanback layout.  How do I make it so that phone only loads MainActivity, and the ADT-1 only loads MainActivityTV?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.androidretrofitwithtv" &gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  
      &lt;uses-feature
          android:name="android.hardware.touchscreen"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.software.leanback"
          android:required="false" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:banner="@drawable/app_icon_your_company"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".MainActivityTV"
              android:label="@string/app_name"
              android:configChanges="keyboard|keyboardHidden|navigation"
              android:theme="@style/Theme.Leanback"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LEANBACK_LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=".DetailsActivity" /&gt;
          &lt;activity android:name=".PlaybackOverlayActivity" /&gt;
          &lt;activity android:name=".BrowseErrorActivity" /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>