please help,how i can check internet connection in moblie either wifi or gprs

Please note that as of October 24, 2014, we will be archiving some of the Nokia Developer discussion boards. The Nokia Asha and Nokia X sections will remain open for continued use. The "Windows Phone/Lumia" and "Other Platforms" sections will become read-only. For your Windows Phone development questions, we invite you to visit the Microsoft Developer Network (MSDN) discussion forums.

If this is your first visit, be sure to check out the FAQ. To start viewing messages, select the forum that you want to visit from the selection below.

please help,how i can check internet connection in moblie either wifi or gprs

hello, i am working on nokia asha sdk2.0 using s40-with-theme.my problem is that in my aap, i am using parsing in my code so before parsing i have to check that in mobile is there any internet connection is available either by wifi or gprs so please suggest me how i can check it in mobile
Thanks

Re: please help,how i can check internet connection in moblie either wifi or gprs

if the user does not have any internet connection either via wifi or gprs then i will not call the httprequest for parsing from webservices and will show data in my database straight a way .This is my main requirtment....

Re: please help,how i can check internet connection in moblie either wifi or gprs

Re: please help,how i can check internet connection in moblie either wifi or gprs

the problem is as far as I understand, that with pre-Asha-1.0 we don't have API, so in there you could only try the connection, and if it fails, then go with backup solution. So maybe you could see how well it would work for your usecase.