Android examples for File Input Output:Byte Array
memset byte array
//package com.java2s; public class Main { public static void memset(byte[] data, byte value, int size) { for (int i = 0; i < size; i++) { data[i] = value;//ww w . j av a 2 s . c o m } } }