How to handle "no internet connection"?

My app just got denied approval from the App Store. Here is what Apple said:
"The application works fine when connected to the Internet, however, when no Internet access is available (for example, in Airplane Mode), the application crashes upon opening. Instead of closing by crashing, the application should handle the absence of network access with an error message. The crash logs are attached for your inspection."
How do I detect no internet and then throw an error message up? I have never done anything like that before. Some sample code would be nice. Thanks!
Ethan

Hi Ethan-
Try the Reachability sample app for ideas:
http://developer.apple.com/iphone/library/samplecode/Reachability/index.html

Similar Messages

  • How to setup dialup internet connection(PPP) in Solaris for ADSL modem

    I ,m new to Solaris. How to setup dialup internet connection(PPP) in Solaris for ethernet ADSL modem? will solaris recognise the ethernet modem?? I only have windows drivers for the ethernet modem. Where to look for info on this?

    The setting you set in IE also affects Firefox. For example, if you set the following, then when Firefox makes a connection request to Windows, Windows is supposed to dial the connection:
    Windows Control Panel > Internet Options > Connections or <br>
    Internet Explorer Tools menu > Internet Options > Connections
    "Dial whenever a network connection is not present"
    Source: [[How to make Firefox automatically dial up]]

  • How to share my internet connection on my macbook with my iPhone ?

    Hi guys, Do you know how to share my internet connection on my macbook with my iPhone. I have already made my own network, and I allowed sharing Internet , but it didn't work. Can you help me , please?

    If your carrier provides the service, go to Settings > General > Network > Personal Hotspot.  If you don't see the Personal Hotspot option, then your carrier does not support it.
    Note that you'll have to pay for a 'tethering' data plan on top of your normal iPhone data plan.

  • How to used the internet connection adsl on my com...

    how to used the internet connection adsl on my computer by nokia n73 me
    i whant used the adsl connection in nokia n73 me by Bluetooth or cable
    and thank you

    Hi Theo,
    There are several ways to implement this using simple timing features of LabVIEW.  Two fairly simple methods are comparing system time stamps or using the Wait VI provided in the Timing palette.  The time stamp comparison requires a little bit more programming, but can be included in your main program loop.  To use the Wait function, you will probably need to construct a new loop parallel to your main loop.  I have attached screenshots of these two implementations.  Please let me know if you have any more questions.
    Donovan
    Attachments:
    WaitDelay[1].Png ‏5 KB
    TimeStampFalse.Png ‏11 KB
    TimeStampTrue.Png ‏11 KB

  • How can I share internet connection of iPad?

    Under the following considerations:
    - An iPad3 has established a 3G/4G data connection.
    - There is a wireless access-point working.
    - iPad is connected to that wireless access-point.
    - There is a notebook (or desktop whatever) also connected to same wireless network.
    ... is it possible to share iPad's internet connection across the network and how?
    Important note:
    I am not looking for iPad to perform like a wireless hot-spot. IMHO I am looking for a gateway/router application for iPad.

    You can't.
    If you don't want to use your local WiFi you could try using a mobile phone that allows you to create a personal hotspot.

  • How to dial automatically internet connection in firefox browser at browser startup as in internet explorer

    i have ADSL modem broadband connection in which i have to connect to internet by establishing a connection by using following steps
    control panel>network connection>create a new connection>connect to internet>set up my connection manually >connect using dial up modem OR connect using a braodband connection in which username and password required
    creating this connection i have to provide username and password provided by ISP.
    i have to dial internet connection manually after modem set local area connection automatically
    i found a solution for internet explorer and by changing setting internet explorer start automatically dialling internet connection as i start the internet explorer.
    is their in mozilla firefox an option to automatically dial internet connection as i open firefox browser?
    and is their is any solution for as i start my computer internet connections established automatically without opening any browser , if such solution is available ,please tell about it.

    The setting you set in IE also affects Firefox. For example, if you set the following, then when Firefox makes a connection request to Windows, Windows is supposed to dial the connection:
    Windows Control Panel > Internet Options > Connections or <br>
    Internet Explorer Tools menu > Internet Options > Connections
    "Dial whenever a network connection is not present"
    Source: [[How to make Firefox automatically dial up]]

  • How to set up internet connection between MacBook Pro and an old eMac?

    I got an old eMac without wifi and a MacBook Pro. I'd like to share the network connection via ethernet cable to my eMac, but I can't get it work.
    I'd like to use it with screenrecycler and it needs a network connection.
    How to do it? How to set up the connection between the client and the host? Could somebedy give me a step by step guide?
    Thank you very much

    Hello,
    First, are you using Wifi for Internet on the MBP?
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list, Wifi on the MBP.
    In Shating on both, enable File Sharing, Screen Sharing, & Web Sharing on both.
    Then with the Ethernet cable between the two, find the IPs of both, or use Finder>Go>Connect to Server>Browse... see what shows up.

  • How can remove "MMS" Internet Connection

    Hi, any one can help me I had installed fMMS and it also created "MMS" Internet connection. Then I had uninstalled fMMS but the MMS internet connection still exists. How can I remove this ?
    Thanks
    Solved!
    Go to Solution.

    matthew_maude wrote:
    download fAPN, and use that
    And here is the link to it at maemo.org:
    http://maemo.org/downloads/product/Maemo5/fapn
    If you found this post helpful, please click on the green "Kudos!" star. Cheers!

  • How can I get internet connectivity with my iPod Touch cabled to my PC?

    Most devices "tether" to a computer (PC or iMac) for internet connection. I cannot find any reference in the user manual on getting internet access from the connected PC to the "tethered" ipod touch. How can I accomplish this?

    Hi,
    The iPhone 3G and iPhone 3GS support Internet tethering over a USB cable, as described here: http://support.apple.com/kb/HT3574.
    The iPod touch can connect over a Wi-Fi network, as mentioned here: http://support.apple.com/kb/HT2031.
    If your PC has a wireless card, you may be able to create an Ad-Hoc Wi-Fi network that can share the Internet access to the iPod touch.
    You can also get a wireless router, like an Airport base station http://www.apple.com/wifi/.
    -Jason

  • Pc & Laptop: How to share the internet connection via Bluetooth?

    Hi,
    I've recently bought a laptop and i'm having trouble figuring out how to share the internet via bluetooth from my desktop pc. I can connect using the Personal Area Network (PAN) but i'm not sure how to send the internet. whatever i've been told to try so far as all failed.
    i'm sure this questions been asked quite alot, so i'm sorry to ask again)
    could someone tell me a step by step setup?
    (Thanks, It's much appreciated)

    Hi
    Its takes longer to describe the full installation how to use the BT for internet sharing.
    I have found this website with a installation instruction for Windows 2000.
    The dialogs for Windows XP might be a little different, but the configuration will be the same.
    http://www.geekzone.co.nz/content.asp?contentid=1285
    However, check it. Its useful.

  • How to share broadband internet connection on Satellite A200-1VG

    Hi,
    I am very new to the world of laptops, 3 days old. In fact, I have a desktop (the OS is XP professional) and have just bought my self a Satellite A200-1VG (the OS is Vista).
    I believe it is possible for 2 machines to share a broadband connection, but how I do not know. I must confess to being quite ignorant when it comes to technology ( you have probably gathered that by now) and I ask that any advice given will be given in not too technological language.
    Thanks in advance from a newbie.
    MegP

    Okay, firstly some routers or mdoems come with 2 ports on the back so you can connect two different computers so simply plug them both in
    if not, then i advise you buy a router which allows you to add numerous computers to the same network via wires or add numerous computers wirelessly
    i have one computer connect to my netgear router -wired
    i have one computer wirelessly connected with a Netgear USB wireless reciever
    then i got my laptop which is connected via wireless
    i have xbox live which i connect to the internet via my laptops wireless connection, this can be done with any pc or laptop aswell
    what you do is
    wireless networks - where it showws any detected networks
    change advanced options - on the side
    advanced tab
    then allow other computers to use this computers internet connection
    simple as
    all you do is plug in your other pc or whatever

  • How to check whether internet connection is avaliable or not from Swing

    Hii Javaties
    I am developing a application in Swing .
    I need to call a servlet from Swing.
    So how can i check tht internet connection is avaliable or not. ?

    i am also fatching this type of problem. my applet is playing a audio file from server. during the playing time if network connection failed then NoRouteToHostException occurs from some PCs. but there are some PCs it doesn't occur though the playing is stoped.
    all PCs OS windows XP and jre jdk1.5.0_06
    i can't find out the problem. can any one help me for this?
    code:
    URL testURL = null;
                                try {
                                    testURL = new URL(sourcePath);
                                    //inputStream = testURL.openStream();
                                    URLConnection connection = testURL.openConnection();
                                    connection.connect();
                                } catch(NoRouteToHostException e) {                
                                    System.out.println("NoRouteToHostException block: " + e.getMessage());
                                }thanks
    bashar

  • How to detect an Internet connection?

    I want to create an application which calculate the time of a Internet connection but I don't know how to detect it! Help me, thanks.

    Not surprising since there is no such thing.
    Connections only go from computer to computer. When you send email your computer connects to a computer. And it sends the email to it.
    When you try to connect to www.yahoo.com your computer connects to a computer. It gets an address. Then it tries to connect to that address.
    And every time I said 'connect' about there are very likely other "computers" involved in the transaction.
    And if any of those devices fail then you won't connect.
    Notice in the above that there is no "internet". There are just computers and connections.
    So now that you know what is happening you will now know how to code your own solution.
    Or you can provide more detail as to exactly what you are trying to determine so that a more specific answer can be given.

  • How to make a internet connection!!

    I need to make a internet connection before a start a servlet (client) there's a form to do that ????

    There is no such thing as a 'internet connection'. You don't connect to the internet, you connect to computers - like DSN servers, web servers etc.
    Presumably you have a network. A client (browser) must connect to an application server to use a servlet. This is true even when running on the same box.
    Your question is how to you connect to the web server? What application/web server are you running?

  • How to set up internet connection to laptop and desktop?

    I have a modem connected to an old lynksis router. I have my desktop hooked in port 2 on the router and my laptop in port one..
    The desktop's  network map shows it connected to a switch(my router) and the switch to my laptop and the laptop to the internet..
    Thus I have internet connection on my desktop
    but my problem is that the network map on the laptop shows it connected to the switch and the switch to my desktop
    thus no internet connection..
    how do I connect the laptop to the internet as well as share files? I'm confused after fiddling around for an hour.

    Hello,
    First, are you using Wifi for Internet on the MBP?
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list, Wifi on the MBP.
    In Shating on both, enable File Sharing, Screen Sharing, & Web Sharing on both.
    Then with the Ethernet cable between the two, find the IPs of both, or use Finder>Go>Connect to Server>Browse... see what shows up.

Maybe you are looking for

  • How do I forces FF 23 to open maximized, not full screen, but maximized, both on start up and when opening new windows?

    Firefox 23 does not open maximized nor does it open new windows maximized. As such I have to manually maximize each window. Run is set to maximized in the shortcut properties, yet it still opens in a normal or less than normal size window. Older vers

  • HT2509 How to use duplicate cleaner for I Photo?

    I downloaded duplicate cleaner for I Photo and could not get it to work. When it posted to go to Library in finder and I do not have library listed but I do have pictures listed (which are files) so it would not work when I cloicked to activate the c

  • Yet  another Flash Player Problem for a newbie

    Here is the situation. A friend took my PC and installed a couple of fans and installed AVG. I get the computer back and now when my kids go to web sites that need flash player they get a message that says you don't have flash player (even though I d

  • Output channel strip blank

    Has anyone seen this ? I'm using Logic Pro 9. In one of the songs I'm working on, the output 1-2 channel strips ismblank. It doesn't have any of the insert buttons and I can't select any of the presets. (ie. Pop mastering, etc.) I tried deleting the

  • Weather ICONs - How can I find out what they indicate?

    I have looked all over the internet and can't find an answer.... what do all those different weather icons mean in iPhone's weather feature. Some of them are obvious, sunny, raining, partially cloudy... but there are some that are confusing... snow w