Before you buy a new cell phone or new tablet, please try the following procedure to repair your device. First charge your battery, backup your important data if possible and in most cases take out SIM and SD card before factory reset. It is impossible to recover your data after doing a hard reset, so online backup is always important. For all of your data, a backup should be done on an external device, hard drive, raid system or media. With or without insurance, if your cell phone lost, damaged or stolen at least your invaluable data is backed up in a safe place. If you are about to sell your phone and you want to wipe your personal data, or if your phone affected with virus you have to do a hard reset. In some cases, you can delete the forgotten password or lock pattern from your device as well. All information is for devices with stock based ROMs. If you are using rooted device, always back up your EFS folder first, containing your IMEI info, etc.!
Reset iPhone 4: Press and hold the On/Off Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
Restarting and Resetting iPhone 4 iphone4
If something isn’t working right, try restarting iPhone, force quitting an application,
or resetting iPhone.
Restart iPhone 4: Press and hold the On/Off Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears. If you can’t turn off iPhone or if the problem continues, you may need to reset iPhone. A reset should be done only if turning iPhone off and on doesn’t resolve the problem.
Force quit an application: Press and hold the On/Off Sleep/Wake button on top of iPhone for a few seconds until a red slider appears, then press and hold the Home button until the application quits. On iPhone 3GS or later, you can also remove an application from the recents list to force it to quit.
Resetting iPhone via menu
Go to Settings > General > Reset and select "Erase All Content and Settings"