I set up my power source to 4.2 V @ 0.1 A. If I connect a Li-ion battery I get a current of about 0.1 A. If I connect a resistor of about 40 Ω I get a current of about 0.1 A. But if I put it all together (connect battery through the resistor) I get a current of about 10 mA.
In the first place I just wanted to calculate what resistor should I choose for a charging current of 0.1 A. But now I'm confused. Can anybody explain it to me?