Log into/hack email

Can coding be used to hack gmail accounts or use apps installed on a mobile linked to the amail?
Im not asking because i want to hack, im asking because i myself have been hacked.
And i think by a google chromium developer.