Article 22 extends protection against arrest and detention in certain cases. Under Article 22 Detention is of two types – Preventive & Punitive.
Right to Freedom
Right to Freedom talks about the protection of several Rights of an individual. Article 19 to Article 22 talks about those rights.
Article 20 provides three types of protection against the state.
Article 19 Confers six different freedom. Speech & expression, Assemble, Association, Movement, Residence, Vocation.
Article 21 of the Indian Constitution, is related to the Right to Life of an individual. It is the most fundamental among Fundamental Rights.