So I've always been under the assumption that you can't pass arrays between activities with extras. But I was just going through the Bundle class docs and saw putStringArray(String key, String[] value)
and public String[] getStringArray (String key)
. Are these new? They both say since API lvl 1, but I don't remember being able to pass arrays. Am I going crazy here?
Asked
Active
Viewed 9,171 times
3

Falmarri
- 47,727
- 41
- 151
- 191
2 Answers
2
I think you must be able to pass string[] as a bundle in Android. Any specific reason you have for getting into such a conclusion?
Refer to this post

DeRagan
- 22,827
- 6
- 41
- 50
-
I think I'm just going crazy. I was sure I'd looked into passing an array, tried it, failed, and asked on SO about it and was told it can't be done. I think I need some sleep, lol – Falmarri Aug 30 '10 at 10:01