Chemical energy.
When an electric cell is a part of a complete electric circuit, the chemical energy of its chemical is converted in to electrical energy.
Chemical energy is spontaneously converted to electrical energy.
a battery cell
Solar energy.
Energy is converted from chemical energy to electrical energy.
How is mechanical energy is converted to electrical energy through a solar cell? It isn't, what energy is converted is commonly known as solar energy. What happens in a solar cell is that the sun "shoots" photons at the silicon cell. When the photons are shot hard enough, the silicon "breaks" as well as the photon and energy is formed. This is then used as electrical energy.
electric
Chemical energy
convert chemical energy into electrical energy
A cell in a rechargeable battery does that when it's being recharged.
In short, the light (electromagnetic energy) shining on the solar cell is converted directly to electric charge (potential energy). The increase in the electric charge can promote the flow of electric current in an external circuit, in much the same way as an ordinary electrical battery would.
An ordinary cell phone has cell batteries (of course). Chemical energy is stored in the batteries and is converted into electrical energy when needed by the phone. This energy is converted into radio waves, or electromagnetic energywhen we speak and travels to other phones. It can also be converted into light energy for display and like almost all electrical energy conversions gives out thermal (heat) energy as waste.electrical energy -------> electromagnetic energy+light energy+heat energy