If you have trouble to enter code and/or if code is not accepted on Samsung Android Phone like Samsung T959, then please try to make “Factory Reset” following the instructions below :
1 – Shut your Android Galaxy S down (Power off) or remove Battery.
2 – Now press Volume up, Home and Power together.
3 – If the Samsung Symbol is coming up leave the Home Button.
4 – Then there is a boot Menu
5 – Volume Up and Down to Navigate , Home to select the chosen option.