0

In iOS it is very use (when using storyboard) to change root view controller.

Root view controller; Controller that loads/appears to user when user first opens the app.

Is there a way to do that in android. I have an activity (e.g. RegistrationActivity) and I want that activity to be first activity that gets loaded in android

I can go to RegistrationActivity by following a flow, but for purposes of debugging I want to short circuit thsoe steps and want my emulator to load that activity on app launch.

user462455
  • 12,838
  • 18
  • 65
  • 96

1 Answers1

1

You will notice that within the AndroidManifest.xml the MainActivty declaration has the intent filter

<intent-filter>
    <action android:name="android.intent.action.MAIN" />

    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Simply move this to which ever activity you desire to be the root activity

Joe Maher
  • 5,354
  • 5
  • 28
  • 44