I have made an Android app, on Android 4.4.4, and I want to develop it on Android 4.0.0. I have a problem to send a service, my binder, to a fragment.
On Android 4.4.4 I use the following lines :
AddTrashFragment addTrashFragment = new AddTrashFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("bitmap", bitmap2);
bundle.putString("fileName", fileName);
bundle.putBinder("binder", binder);
addTrashFragment.setArguments(bundle);
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.relativeLayout,addTrashFragment).addToBackStack(null).commitAllowingStateLoss();
But when I try to build my project with Android 4.0.0 I have the following error : Call requires API level 18 (current min is 14): android.os.Bundle#putBinder less (Ctrl + F1)
I don't understand how to send my service, my binder, to a fragment when I try to build my project on Ice Scream Sandwich.