codebutler / android-websockets

Bare minimum websockets (hybi13/RFC) client for Android
713 stars 494 forks source link

Replace Arrays.copyOfRange so that this library can be compiled on Android under 2.3 #7

Open ngocdaothanh opened 11 years ago

ngocdaothanh commented 11 years ago

This line uses Arrays.copyOfRange which is only available on Android 2.3+: https://github.com/codebutler/android-websockets/blob/master/src/com/codebutler/android_websockets/HybiParser.java#L337

Replacing it with this will make this library be compilable on Android under 2.3: http://stackoverflow.com/questions/7970486/porting-arrays-copyofrange-from-java-6-to-java-5