title: Maintain different workflows for different domains in same android app
body: <p>I am developing a single app for different domains. When an application is started and once I get the domain type I need to maintain the single workflow for the particular domain.Based on the domain type selected the flow will work. I have one solution available one is to save Domain type in <code>SharedPreference</code> and checking every time the domain from preference and set labels on <code>Fragments</code> and <code>Activity</code> reusing the Fragments etc and performing actions accordingly. But the problem here is always checking using <code>if...else</code> conditions for all domain type and performing actions accordingly. How to resolve this?</p>