Closed niketkadde closed 9 years ago
It is useful ability.. Please apply that request.
@jaydeepw, what do you think about this feature? May be we can add it to configuration?
Yes, that is the plan. I cannot merge this PR as the underlying code has changed almost entirely and new way of configuring PolyPicker has been implemented. I would request you guys to test the SNAPSHOT build that is recently published.
intent.putExtra(ImagePickerActivity.EXTRA_SELECTION_LIMIT, 3); intent.putExtra(ImagePickerActivity.EXTRA_SHOW_ONLY_CAMERA, true); is not supported in latest dependencies
Minor Changes in ImagePickerActivity.java Now user can set flag for showing only camera or gallery. To set this flag user need to, Add this with value true/false as an extended data to the intent while starting as activity. For e.g. Intent intent = new Intent(mContext, ImagePickerActivity.class); intent.putExtra(ImagePickerActivity.EXTRA_SELECTION_LIMIT, 3); intent.putExtra(ImagePickerActivity.EXTRA_SHOW_ONLY_CAMERA, true); // intent.putExtra(ImagePickerActivity.EXTRA_SHOW_ONLY_GALLERY, false); startActivityForResult(intent, INTENT_REQUEST_GET_N_IMAGES);
EXTRA_SHOW_ONLY_CAMERA && EXTRA_SHOW_ONLY_GALLERY By default both options will be displayed, Set any of the above flag to true to show only camera or only gallery If user sets both to true, both options will be displayed.