How do I change the startup activity of an application?

Asked 2 years ago, Updated 2 years ago, 149 views

I'm making an app, but I'd like to add other activities such as a login screen. And I want to change it into a starting activity How can we do that?

android android-activity

2022-09-22 22:21

1 Answers

You can add activities from the AndroidManifest.xml file or set startup activities.

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

The activity you want to start

<activity ~~>

</activity>

You can insert that intro filter in between.


2022-09-22 22:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.