I have two classes. First is activity, second is a fragment where I have some EditText. In activity I have a subclass with async-task and in method doInBackground I get some result, which I save to variable. How can I send this variable from subclass “my activity” to this fragment?
I have two classes. First is activity, second is a fragment where I have
Share
From Activity you send data with intent as:
and in Fragment onCreateView method: