Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Android Wear DataMap not have a putIntArray method?

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

like image 814
cpjolicoeur Avatar asked Sep 27 '22 05:09

cpjolicoeur


1 Answers

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

like image 166
Ali Naddaf Avatar answered Oct 13 '22 03:10

Ali Naddaf