By converting ambient energy into electricity, energy harvesting is capable of at least offsetting, or even replacing, the reliance of small portable electronics on traditional power supplies, such as batteries. Here we demonstrate a novel and simple generator with extremely low cost for efficiently harvesting mechanical energy that is typically present in the form of vibrations and random displacements/deformation. Owing to the coupling of contact charging and electrostatic induction, electric generation was achieved with a cycled process of contact and separation between two polymer films. A detailed theory is developed for understanding the proposed mechanism. The instantaneous electric power density reached as high as 31.2 mW/cm(3) at a maximum open circuit voltage of 110 V. Furthermore, the generator was successfully used without electric storage as a direct power source for pulse electrodeposition (PED) of micro/nanocrystalline silver structure. The cathodic current efficiency reached up to 86.6%. Not only does this work present a new type of generator that is featured by simple fabrication, large electric output, excellent robustness, and extremely low cost, but also extends the application of energy-harvesting technology to the field of electrochemistry with further utilizations including, but not limited to, pollutant degradation, corrosion protection, and water splitting.