Ecology
Many members of Oniscidea live in terrestrial, non-aquatic environments, breathing through trachea-like lungs in their paddle-shaped hind legs (pleopods), called pleopodal lungs. Woodlice need moisture because they rapidly lose water by excretion and through their cuticle, and so are usually found in damp, dark places, such as under rocks and logs, although one species, the desert-dwelling Hemilepistus reaumuri, inhabits “the driest habitat conquered by any species of crustacean”. They are usually nocturnal and are detritivores, feeding mostly on dead plant matter.
A few woodlice have returned to water. Evolutionary ancient species are amphibious, such as the marine-intertidal sea slater (Ligia oceanica), which belongs to family Ligiidae. Other examples include some Haloniscus species from Australia (family Scyphacidae), and in the northern hemisphere several species of Trichoniscidae and Thailandoniscus annae (family Styloniscidae). Species for which aquatic life is assumed include Typhlotricholigoides aquaticus (Mexico) and Cantabroniscus primitivus (Spain).
Woodlice are eaten by a wide range of insectivores, including spiders of the genus Dysdera, such as the woodlouse spider Dysdera crocata, and land planarians of the genus Luteostriata, such as Luteostriata abundans.
Woodlice are sensitive to agricultural pesticides, but can tolerate some toxic heavy metals, which they accumulate in the hepatopancreas. Thus they can be used as bioindicators of heavy metal pollution.