https://www.maximintegrated.com/en/app-notes/index.mvp/id/4322
is how it's done more correct for constant current constant voltage charger
(items to notice)
https://www.maximintegrated.com/en/images/appnotes/4322/4322Fig01.gif
the empty battery not being charged with high current until it develops ability to generate some voltage internally
followed by Const.Current then by Const.Voltage cycles (not exceeding critical 4.2V)
more about LI-Ion http://www.powerstream.com/lithium-ion-charge-voltage.htm
http://www.cadex.com/en/batteries/safety-of-lithium-ion-batteries
basically use more sources for help as just here (http://forum.allaboutcircuits.com)