First of all, I\'m well aware that this error is occur because I\'m trying to call window/dialog through a Context that is not an Activity.
Pass Your Activity to showSplashScreen() Method...
Do like this..
HomeClass homeClass = new HomeClass();
homeClass.showSplashScreen(Your Actvity);
In Your Home class
public void showSplashScreen(Activity curActivity) {
splashDialog = new Dialog(curActivity, R.style.SplashScreen);
splashDialog.setContentView(R.layout.splash_screen);
splashDialog.setCancelable(false);
splashDialog.show();
}