I need to pass a drawable (mDLlist.get(position).getImageId()) from a Fragment to a DialogFragment.
I can`t seem to find a way how to do this, any input would be great.
Thank you upfront.
...
FragmentManager ft = ((FragmentActivity)context1).getSupportFragmentManager();
DialogFragment newFragment = MyNotification.newInstance();
Bundle args = new Bundle();
// How to pass this value ?
args.put?("appdraw", mDLlist.get(position).getImageId());
//--//
args.putString("appname", (String)mDLlist.get(position).getLabelnameText());
args.putString("appversion", mDLlist.get(position).getVersionName());
args.putString("appinstalltime", "Downloaded");
newFragment.setArguments(args);
newFragment.show(ft, "mydialog");
...