title: How to get a login activity before mainactivity
body: <p>is it possible to get a login activity in between splash and main activity in android studio.`it should be after splash activity and before main.how to get it.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".Splash"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar" &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=".Register"
                android:label="@string/title_activity_register"
                android:theme="@style/AppTheme.NoActionBar"/&gt;
      &lt;activity android:name=".MainActivity"
          android:theme="@style/AppTheme.NoActionBar"/&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>