A method for producing coated silicone hydrogel contact lenses each having a hydrogel coating thereon, comprising the steps of: obtaining a preformed silicone hydrogel contact lens comprising a silicone hydrogel material as lens bulk material; forming a base coating on the preformed silicone hydrogel contact lens according to a coating process to form a treated silicone hydrogel contact lens having the base coating thereon, wherein the solution-coating process comprises contacting the preformed silicone hydrogel contact lens with a coating solution for a coating period of time, wherein the coating solution has a first pH and comprises from 0.001% to 5.0% by weight of a polyanionic polymer, wherein the polyanionic polymer is a homo- or copolymer of acrylic acid or C 1 -C 3 alkylacrylic acid, wherein the first pH is from 0 to 4.5, wherein the coating solution is prepared by dissolving the polyanionic polymer in a mixture of water and one or more organic solvents, an organic solvent, or a mixture of one or more organic solvent; rinsing the treated silicone hydrogel contact lens obtained in step with a mixture of water and one or more organic solvent miscible with water for a first rinsing period of time; rinsing the treated silicone hydrogel contact lens obtained in step with a buffered saline having a second pH for a second rinsing period of time, wherein the second pH is from 7.0 to 9.5, provided that if the second pH is 7.5 or less the buffered saline has a salt concentration of at least 20 mM; and heating the treated silicone hydrogel contact lens having the base coating thereon in an aqueous solution having a pH of from 6.5 to 9.5 and including a watersoluble, thermally-crosslinkable hydrophilic polymeric material at a temperature from 60°C to 140°C to form a coated silicone hydrogel contact lens having a hydrogel coating thereon, wherein the hydrogel coating is covalently attached onto the base coating. obtaining a preformed silicone hydrogel contact lens comprising a silicone hydrogel material as lens bulk material; forming a base coating on the preformed silicone hydrogel contact lens according to a coating process to form a treated silicone hydrogel contact lens having the base coating thereon, wherein the solution-coating process comprises contacting the preformed silicone hydrogel contact lens with a coating solution for a coating period of time, wherein the coating solution has a first pH and comprises from 0.001% to 5.0% by weight of a polyanionic polymer, wherein the polyanionic polymer is a homo- or copolymer of acrylic acid or C 1 -C 3 alkylacrylic acid, wherein the first pH is from 0 to 4.5, wherein the coating solution is prepared by dissolving the polyanionic polymer in a mixture of water and one or more organic solvents, an organic solvent, or a mixture of one or more organic solvent; rinsing the treated silicone hydrogel contact lens obtained in step with a mixture of water and one or more organic solvent miscible with water for a first rinsing period of time; rinsing the treated silicone hydrogel contact lens obtained in step with a buffered saline having a second pH for a second rinsing period of time, wherein the second pH is from 7.0 to 9.5, provided that if the second pH is 7.5 or less the buffered saline has a salt concentration of at least 20 mM; and heating the treated silicone hydrogel contact lens having the base coating thereon in an aqueous solution having a pH of from 6.5 to 9.5 and including a watersoluble, thermally-crosslinkable hydrophilic polymeric material at a temperature from 60°C to 140°C to form a coated silicone hydrogel contact lens having a hydrogel coating thereon, wherein the hydrogel coating is covalently attached onto the base coating.