To apply for a patent, one must be novel, creative and practical. If you have entered the market before applying for a patent, it means that the patent has lost its novelty, so the patent application is invalid.
Patent application is a necessary procedure for obtaining patent right. To obtain a patent right, the applicant shall file an application with the State Patent Office, which shall approve and issue a certificate.