I’m developing an application where a registration screen is required,
I initially put the registration sreen as the default
<activity android:name=".RegistrationActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
And after successfully registered I should make the user never see this screen again
My work around was to make a new intent to the main actual screen
Intent i = new Intent(this, SettingsActivity.class);
startActivity(i);
but what it does is that when I press back I see the registration screen again
Thanks
Try this: