How to pass a String array value from one activity to another Activity in android?

前端 未结 6 1555
北荒
北荒 2020-12-15 14:20

I am having two activities in my application. I want to pass tha array of String from one activity to another.. How to pass this values from activity to activity?

6条回答
  •  甜味超标
    2020-12-15 14:35

    just serialize it and set it in the extras of the intent (of activity) you wanna open.
    You will receive it in the onCreate() of that activity.
    Convert it to array again.

提交回复
热议问题