I want to pass ArrayList of NameValuePair from one fragment to another, here is my code
param = new ArrayList<NameValuePair>();
param.add(new BasicNameValuePair("member_id",mem_id));
param.add(new BasicNameValuePair("country_id",countryid+""));
Bundle urlbundle = new Bundle();
urlbundle.putParcelableArrayList("params",(ArrayList<? extends Parcelable>) param);
result=new SearchResults();
result.setArguments(urlbundle);
I am trying to get data in this way
Bundle urlbundle=this.getArguments();
param=urlbundle.getParcelableArrayList("params");
But it is giving error Bound mismatch: The generic method getParcelableArrayList(String) of type Bundle is not applicable for the arguments (String). The inferred type NameValuePair is not a valid substitute for the bounded parameter
Can anyone help me to solve this or How to do this correctly?