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 doInBa
EditText
doInBa
the better approach for sending data from activity class to fragment is passing via setter methods. Like
FragmentClass fragmentClass = new FragmentClass(); fragmentClass.setMyList(mylist); fragmentClass.setMyString(myString); fragmentClass.setMyMap(myMap);
and get these data from the class easily.