I have an application, I want to screw the registration using Firebase. I wrote a separate class, but I don’t know how to indicate that it was loaded first, instead of MainActivity, and MainActivity opened upon successful login (I know how). How to change?

    1 answer 1

    What kind of activations to run when the application starts, the system determines by the intent filter. In the manifest, the main activation looks like this:

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

    Those. transfer

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

    inside the tag of the new main activit.


    In this new main activation at startup, check onCreate that the user is authorized and start the next activation by completing this one or show him the buttons for authorization and then redirect further