Baloney - the release was certainly tested. Each release is tested by 3rd party app developers before being released to the general public. No such problem with my iPhone 4 since day one purchased on the release date with a number of different wi-fi networks I regularly connect my iPhone with. Some encrypted and password protected, and others not. If not tested, I wouldn't be able to connect to any of the number of wi-fi networks I have access to and regularly connect my iPhone with. If there was a problem with your iPhone, you wouldn't be able to connect to ANY wi-fi network including the network at the Apple store. And if a diagnostic check was run on your iPhone, it would have detected if there is a hardware problem with the wireless card or with something else.
I have 5 devices connected to this router. Nothing wrong with the network.
This does not answer my question.
+Have you checked the manufacturer's website for your wireless router to see if there is a firmware update available for your wireless router that you haven't installed yet?+
Strangely my neighbors networks are protected and need a password! So technically it should give me a incorrect password. But it does not.
Does this mean you don't know the password for your neighbor's wireless network - you are entering a random password and your iPhone is connected to the network which provides internet access?
Also now I tried restoring my device and lost my applications.
All apps on your iPhone should be in your iTunes library on your computer. If you have Sync Apps selected under the Apps tab for your iPhone sync preferences with iTunes which should be selected, after downloading an app with your iPhone the app will be copied to your iTunes library the first time you sync your iPhone with iTunes after doing so. This also provides for downloading an app with iTunes on your computer and installing the app on your iPhone via the iTunes sync process. This also provides for removing an app from your iPhone without deleting the app by deselecting the app under the Apps tab followed by a sync. To re-install the app later, reselect the app under the Apps tab followed by a sync.
All iTunes content on your iPhone including 3rd party apps should be in your iTunes library on your computer.
When restoring an iPhone with iTunes, the iPhone is completely erased first followed by the firmware being re-installed. After the firmware is re-installed, you are prompted to restore from your iPhone's backup (which is the default selection), or as a new iPhone or not from your iPhone's backup. Either way this must be followed by a sync to re-transfer your selections under the various tabs for your iPhone sync preferences with iTunes (with your selections under the various tabs for your iPhone sync preferences pre-selected when restoring from your iPhone's backup) or your selections under the various tabs must be re-selected when restoring as a new iPhone or not from your iPhone's backup. Either way, all apps that were on your iPhone should be in your iTunes library on your computer.
Since you must not have Sync Apps selected under the Apps tab, you can re-download all apps with iTunes that were on your iPhone before restoring that are not in your iTunes library on your computer
and you won't be charged again for a purchased app as long as you use the same iTunes account to re-download the app that was used to purchase the app originally.
Does this mean you restored your iPhone with iTunes as a new iPhone or not from your iPhone's backup?