Search code examples
androidandroid-bundle

Put long value into Bundle


A Bundle can save many types of data: short, byte, another Bundle, ArrayList<Integer>, yet not a simple long.

How can this best be achieved? Must it be converted to a ArrayList<Integer>?


Solution

  • Are you sure? There are putLong() in docs.