How to pass an array of Uri between Activity using Bundle

后端 未结 4 1736
情话喂你
情话喂你 2021-01-13 01:43

I need to pass an array of Uri to another activity, to pass an array of String I use simply

String[] images=getImagesPathString();

    Bundle b = new Bundle         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 02:19

    Isn't the Uri parcelable? You can try to create an array of parcelable elements (Uri) and put it in the Bundle.

提交回复
热议问题