actions – Execute hook in the footer or header after a plugin has been activated

I have the following code fraction, but it does not work, I want an action in the footer to be invoked and something printed after activating a plugin, but I can not do it, the problem seems to be admin_footer does not work, I do not know if actived_plugin is printed just before or after the HTML, so 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";
}

Finally, I want to print a text in the header or footer after a plugin has been activated