If you need to dump the contents of an array to the Android Log (Logcat) output, I can confirm that this approach works, at least with simple arrays of integers and strings that know how to print themselves:
If you’re trying to print more complicated arrays of custom objects you’ll probably need to implement good
toString methods on those objects, and then this technique should work.
There’s just one person behind this website; if this article was helpful (or interesting), I’d appreciate it if you’d share it. Thanks, Al.