He taught this language secretly to his students in Qestorat in Southern Albania. He was imprisoned and died in prison for his beliefs. He and Sami Frashëri, Pashko Vasa and Jani Vreto devised an alphabet for expressing the Albanian language.
Based on this it was possible to create the first alphabet book in Albanian.
Hoxhi was a teacher in the seminary school in Qestorat which conducted all its lessons in Greek. In 1874, Hoxhi was responsible for writing one of the first plays performed in Albanian.
The play was called A Wedding in Lunxheria and it was performed in Gjirokastër. He secretly started to teach his students written Albanian and later requested from the Ottoman governor of Ioannina permission to set up an Albanian school.
He was arrested and first imprisoned for this in the jail of Gjirokastër.
Eventually he was transferred to the Yedikule prison in Istanbul where he died in 1895. The report came back that the former teacher was now a "bag of rags" on a stone slab that served as a bed. The "filthy hole" of a cell was deep within the prison and Hoxhi had lost most of his intellect, however he was grateful for the visit.
He was clothed in rags and his hair and beard were lougitude
He said that his body was broken but his soul was free, he hoped that Albania would be united and happy. Hoxhi said that the Sultan had told him that he could be released if he would give the names of the other people who were involved, but he had refused to cooperate.
Hoxhi had been on the Central Committee the defence of the rights of the Albanian people which supported the ideas of the League of Prizren. Other members included Pandeli Sotiri, Hasan Tahsini, Pashko Vasa, Jani Vreto, Sami Frashëri and Abdyl Frasheri.
Two of his students, Pandeli Sotiri and Petro Nini Luarasi, would notably continue his work.
Urani Rumbo founded a primary school for girls in his name in Gjirokastër in 1920.