Passing array to intentional android

So, I have always been on the assumption that you cannot pass arrays between actions with additional functions. But I just looked through the Bundle class documents and saw putStringArray(String key, String[] value)and public String[] getStringArray (String key). Are these new? They speak with the lvl 1 API, but I don’t remember being able to pass arrays. I'm going crazy?

+3
source share
2 answers

I think you should be able to pass the string [] as a package in Android. What specific reason do you have to come to this conclusion?

Refer to this post

http://www.anddev.org/view-layout-resource-problems-f27/how-can-i-pass-multidimensional-string-array-two-activities-t9259.html

+2

Serializable , , String. Intent setExtra(String, Serializable), .

0

Source: https://habr.com/ru/post/1762222/


All Articles