isForegroundActivity

public boolean isForegroundActivity()