Back to project page BLEService.
The source code is released under:
Copyright (c) 2014, Ratio LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project BLEService listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ratio.util; /**/*from w w w. jav a 2 s . co m*/ * reverse a byte array. */ public class BitUtils { // this is for ScanDeviceCallback.onLeScan(), which returns the UUID reversed and shifted by a nibble public static byte[] reverse(byte[] byteArray) { byte[] rev = new byte[byteArray.length]; for (int i = 0; i < byteArray.length; i++) { rev[byteArray.length - (i + 1)] = byteArray[i]; } return rev; } }