title: Launcher development - Home button not going back to initial activity
body: <p>I have an app that acts as a Launcher. This app has 3 activities:</p>
  
  <ul>
  <li><p><code>SplashActivity</code>: shows a splash screen while loading, then launches <code>LauncherActivity</code> and finishes. This is the Activity marked as launcher in the manifest.</p>
  
  <pre><code>startActivity(Intent(this, LauncherActivity::class.java))
  finish()
  
  &lt;activity
      android:name=".SplashActivity"
      android:label="@string/app_name"
      android:screenOrientation="landscape"
      android:theme="@style/SplashTheme"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN"/&gt;
          &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
          &lt;category android:name="android.intent.category.HOME" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre></li>
  <li><p><code>LauncherActivity</code>: main activity for Launcher. Has a menu button that launches <code>DashboardActivity</code>.</p>
  
  <pre><code> startActivity(Intent(this@LauncherActivity, DashboardActivity::class.java))
  
  &lt;activity
      android:name=".LauncherActivity"
      android:launchMode="singleTask"
      android:screenOrientation="landscape" /&gt;
  </code></pre></li>
  <li><p><code>DashboardActivity</code>: shows a list of apps and launches them through their launch intent.</p>
  
  <pre><code>private val DEFAULT_FLAGS_APP_LAUNCH = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
  startActivity(packageManager.getLaunchIntentForPackage(packageInfo.packageName).apply {
      flags = DEFAULT_FLAGS_APP_LAUNCH
  })
  
  &lt;activity
      android:label="@string/apps"
      android:theme="@style/TNA"
      android:name=".DashboardActivity"
      android:launchMode="singleTask"
      android:screenOrientation="landscape" /&gt;
  </code></pre></li>
  </ul>
  
  <p>All activities are launched through <code>startActivity</code>, including the apps.</p>
  
  <p>I want the standard Android Launcher behavior, that is: when entering an app through <code>DashboardActivity</code>, if I click home button, go to the main Launcher activity (<code>LauncherActivity</code>), and when clicking back, go to the dashboard (<code>DashboardActivity</code>).</p>
  
  <p>The problem I have is that when clicking home, it goes back to <code>DashboardActivity</code>, not to <code>LauncherActivity</code>. If I finish <code>DashboardActivity</code>, then when clicking back on an app, it goes back to <code>LauncherActivity</code>.</p>
  
  <p>Any ideas on how to solve this?</p>