You know on some phones you can press the volume up and down and the power button all at the same time and it resets the phone to factory settings. It worked on my HTC Inspire, after the 3rd time getting locked outta my phone, I just ended up taking the lock off lol. Hope this helps.
I have a Galaxy S2&I forgot my screen lock code so I held down power&up on volume at the same time but when it goes to android reset screen if you just select"reboot system"you don't have to go back to factory settings unless you want then you choose"clear cache".