This species is found in lowland evergreen forests, including freshwater swamp forest, secondary growth and bamboo, up to 700 m. Although this species is fairly tolerant of degraded forest, being recorded at relatively high densities within selectively logged forests with luxuriant lower-storey growth and at forest edges (e.g. Edwards et al.
2011, D. L. Yong in litt
. 2011), evidence from Singapore suggests that it is unable to persist in secondary forest fragments in the long term (Castelletta et al.
2000). In addition, the species is generally not found in heavily degraded and disturbed habitats such as degraded peat swamp forest (Posa 2011), plantations and scrub (Peh et al.
2006) or in highly fragmented forest (D. L. Yong in litt.
2011). In contrast to these observations, the species has been noted to be abundant in scrub located south of Similajau National Park, Sarawak, and several miles from the nearest area of forest (J. W. Duckworth in litt
. 2011), perhaps indicating dispersal from optimal habitats or a higher tolerance of modified habitats locally.