The spectacled flying-fox prefers roosting in rainforest, but also uses mangroves and eucalypts.