Android examples for File Input Output:Byte Array
Get byte Array Sub array
//package com.java2s; public class Main { public static byte[] byteArraySub(byte[] source, int start, int len) { byte[] des = new byte[len]; for (int i = 0; i < len; i++) { des[i] = source[start + i];/*from www . j a v a 2s . c om*/ } return des; } }