Its not safe to use mobile while charging...
plz discourage this habit...
And also try to understand the working of any battery...
when a battery is charged upto iys full potential then let the battery be drained near to empty and then recharge it...its called battery cycle...if we want best performance from our phone we should let the phone better battery cycles...
hope u got it