I have seen this as a common practice to start activity using static method like this
class HomeScreenActivity{
....
....
public static void startHomeActivity(Context context){
Intent intent = new Intent(context,HomeScreenActivity.class);
activity.startActivity();
}
....
....
}
class LoginActivity{
....
....
public void startActivity(){
HomeScreenActivity.start(this);
}
....
....
}
Is this a good practice , can it create memory leaks, what are the problems it can create?