I have two activities but I want to apply a condition on application start, if one is true then start first activity else start second activity. Right now I am doing it by starting a third activity displaying some welcome stuff and examining the value in background..then appropriate activity gets called. I think there must be some standard way to do this. Peace.
Share
Since you need to specify starting activity in manifest, you can always start first activity, check your condition on
onCreate()and if you need to start second one – start second one and callfinish()for the first activity.Otherwise usually people use splash activity to check all the conditions at the startup (which is your current solution).