Search in sources :

Example 1 with PhotoPickerPlusIntentWrapper

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);
}
Also used : AccountModel(com.chute.sdk.v2.model.AccountModel) PhotoPickerPlusIntentWrapper(com.getchute.android.photopickerplus.util.intent.PhotoPickerPlusIntentWrapper) AssetModel(com.chute.sdk.v2.model.AssetModel) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 AccountModel (com.chute.sdk.v2.model.AccountModel)1 AssetModel (com.chute.sdk.v2.model.AssetModel)1 PhotoPickerPlusIntentWrapper (com.getchute.android.photopickerplus.util.intent.PhotoPickerPlusIntentWrapper)1