use of com.getchute.android.photopickerplus.util.intent.PhotoPickerPlusIntentWrapper in project photo-picker-plus-android by chute.
the class PhotoPickerPlusTutorialActivity method onActivityResult.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode != Activity.RESULT_OK) {
return;
}
final PhotoPickerPlusIntentWrapper wrapper = new PhotoPickerPlusIntentWrapper(data);
List<AssetModel> accountMediaList = wrapper.getMediaCollection();
AccountModel accountModel = wrapper.getAccountModel();
Log.d(TAG, accountMediaList.toString());
Intent intent = new Intent(getApplicationContext(), PhotoGridActivity.class);
intent.putParcelableArrayListExtra(KEY_MEDIA_LSIT, (ArrayList) accountMediaList);
startActivity(intent);
}
Aggregations