I have an class to start a new activity and I have a function inside that creates an intent. I need to pass MainActivity.class variable to that function. Normally I do it like this.
Intent intent = new Intent(context, MainActivity.class);
And I wan't to have something like this:
Intent intent = new Intent(context, variable);
So I wan't to change activity to start basically. Is this possible?