Please see the class java.util.BitSet that do the job for you.
To set : myByte.set(bit);
To reset : myByte.clear(bit);
To fill with a bool : myByte.set(bit, b);
To get the bool : b = myByte.get(bit);
Get the bitmap : byte bitMap = myByte.toByteArray()[0];