Fixed Packet.toByteArray() and added MainActivityTest Android test project