android: Change the handle type (long too ByteBuffer)

Change-Id: Ia2ed94dbbb43d2e768da5af5ca7a51f5cda5bae0