"Fidelity means having a bishop that is generous in offering priests to a neighboring diocese that needs clergy," he said.
It also means "persevering in one's vocation, and I want to thank here especially the example of fidelity that I received in the House of Charity - fidelity to the poor, to the infirm, the disabled, because Christ is there," he said, referencing his earlier visit to the House of Charity in Nalukolongo, Uganda.
The Holy Father then emphasized the need for prayer as the only thing that makes possible the witness of memory and fidelity.
"If a religious or a priest stops praying, because he or she has too much work, then he or she has begun to lose their memory and to lose their fidelity," he said.
Prayer also means regular confession, to ensure that one is not living a double life as a religious, the Pope added.
"If you are a sinner, ask for forgiveness, but don't keep hidden what God doesn't want to remain hidden."
At the conclusion of his address, the Pope called on the intercession of the martyrs of Uganda, and asked all those present to pray for him. He then led the clergy and religious in the Hail Mary.
The Pope will conclude his trip to Africa in the Central African Republic, which he will visit Nov. 29-30.