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
In your activity declare static variable
public static HashMap contactItems=new HashMap();
Then in your fragment do like follow
ActivityName.contactItems.put(Number,contactsModal);