Custom Activity runs on launch rather than Main activity

Created a capacitor plugin in ionic with call a native method of android to open custom activity for android, the activity works with a click of a button. The issue is that whenever the application is installed for the first time, the custom activity is launched rather than the main activity. It works fine with click of button but, the main issue is it starting on the launch of the application (for first time; every-time application is installed again).
Need your guidance to fix this issue asap. Thank you

I found a good example for you to help change your activity within android studio: https://metapx.org/android-studio-set-default-activity/

1 Like