In the Netherlands, Rivai taught Malay language at Berlitz and was actives as a writer. In 1899, he launched his magazinePewarta Wolanda. Of his controversial writings, the most famous was Demoralisasi Orang Jawa in which he said that Javanese poverty was caused by culture and poor education. After met Clockenner Brousson, he changed Pewarta Wolanda into a twice weekly magazine known as Bendera Wolanda. In 1910, after completed his education, Rivai moved to Jakarta where he sat as editor of Bintang Timoer. In addition to his writings about the Indonesian independence movement, he was elected to the Indonesian Volksraad in 1918.