yoanpg Posted February 19, 2021 Share Posted February 19, 2021 Bonjour à tous, J'ai ma MainActivity qui crée un intent: Intent intent = new Intent(this, SecondActivity.class); intent.putExtra(RC_SHARE, "blabla"); startActivity(intent); Dans ma MainActivity j'ai un second thread. Dans ce thread, je voudrais changer le texte d'un TextView de ma SecondActivity. Je n'ai pas trouvé comment appeler une fonction depuis un autre intent. putExtra ne fonctionne pas dans mon cas, car je veux pouvoir modifier la TextView plus tard, pas à la création de l'intent. Comment faire ? Merci de votre aide :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.