5

I'm curious why DataMap in the Android Wear SDK doesn't have a putIntArray method, but instead has a putIntegerArrayList method for Integers.

DataMap has putByteArray, putFloatArray, putLongArray, putStringArray, but not putIntArray.

What is the reason for not allowing int arrays but requiring an ArrayList type instead of integer arrays.

You are allowed to put primitive int values in via putInt, but if you want to put in an array of them you have to store Integers not ints as an ArrayList

cpjolicoeur
  • 12,766
  • 7
  • 48
  • 59

1 Answers1

4

I think that is a simple omission on our side; I opened an internal issue to address that; thanks for reporting it.

Ali Naddaf
  • 16,951
  • 2
  • 21
  • 28