I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the `admin_footer` does not run, I don't know if `actived_plugin` is just before or after the html is printed so that the `admin_footer`, or how could I fix it?

    add_action( 'activated_plugin', 'admin_activated_plugin' );
    function admin_activated_plugin(){
      // up to here if you run ....
      // but
      // the hook below doesn't
      add_action( 'admin_footer', 'after_activate_print_footer', 99 );
    }
    function after_activate_print_footer(){
     echo "something";
    }

In conclusion, I want to print a text in the header or footer just after a plugin is activated