Jump to content

Appeler fonction dans intent


yoanpg

Recommended Posts

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...