I am making application which uses connection with server through internet.
In my application i want to check if internet is available or not when application starts and during application as well. when there is no internet access then it has to show some alert to tell user.
Thanks for any suggestion in advance.
There is a sample code called Reachability from apple can help you. see the URL below
http://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html
Related
I have an application on the apple store, if the device is connected to the internet, the application works well, otherwise, if the device is not connected the application doesn't open, what I want is to popup a message to tell the user there is no connection, or if there is a method to launch the application with the last page opened on this device (offline browser).
Thank you per advance
You can use the Reachability library for your purpose. This library handles the Internet connection states.
To load from the last saved data, you can use Property Lists or Core Data.
You could use Apple's Reachability class to receive notifications about your network status.
#define kReachabilityChangedNotification #"kNetworkReachabilityChangedNotification"
set up a observer for the above notification and when you receive it act accordingly.
If there is no internet connection in my iPhone. And i want to fire an event when phone is connected to internet. Is there any method for that?? or should i check for internet connection after every 10 mins or something like that???
You can try below link, this will help you surely
Reachablity checking
Happy coding
can anyone please provide some information like how to connect my iPhone app to the local sql server 2005. I tried searching in google but i was not able to find a solution, any url or link will be very useful.
Thanks in Advance.
one thing that you can not directly connect your iphone app to any data base except sqlite for other data base you have to create a webservice and can communicate to database whatever it may be hope this helps
I want to get all the Wifi Connections details in my iPhone App and connected my iPhone with any of Wifi Connection same as shown in the given picture
can anyone guide me with any good tutorial Thankx in advance
though you can get the list using the stumbler source code http://code.google.com/p/iphone-wireless/ but this is undocumented API and if you wish to submit your app to the app store then it will get rejected , but will be ok with enterprise applications..
For example I call on the specific phone number and automaticly connect to some kind of server(?) which is able to handle all my actions while I'm connected. I want to try myself in coding this server, but I have no idea how to start =) Please give me some links to read about this or maybe some keywords to google it. Thanks a lot!
Actionscript3 will handle either web applications or desktop applications. Since you're talking about using a cellphone , I doubt you can achieve what you're looking for with AS3.
You could consider a web application whereas a user would connect to the internet via her phone and interact with your application but as far as calling a number and get some form of server response, you may have to look at using another language than AS3.