Detect wireless Internet connection in AIR application

Hi All,
I am facing challenges to determine whether Internet connection is available over a Wireless connection. Even if I am connected, I get the status as Not Connected.
However the same is working absolutely find when I am connected to Wired network.
Can any one advice how should I proceed?
I am using the below code for tracking network connection:
     //check for network availability
     NativeApplication.nativeApplication.addEventListener(Event.NETWORK_CHANGE, onNetworkChange);
    monitor = new URLMonitor(new URLRequest('http://www.google.co.in'));
    monitor.addEventListener(StatusEvent.STATUS, announceStatus);
    monitor.start();
    requestLoader.addEventListener(Event.COMPLETE, requestCompleteHandler);
    requestLoader.addEventListener(IOErrorEvent.IO_ERROR, requestErrorHandler);              
    requestLoader.load(request);
    requestLoader.addEventListener(Event.COMPLETE, setInitStatusMsg);
The corresponding methods have been set to set the boolean flag.
Thanks,
Hitesh Patel.

Hi All,
Thanks for your inputs.
However I resolved the issue. The problem was with my code. I somehow missed the "requestCompleteHandler" function and hence when the request was completed the status was not refreshing. Its working fine now.
Thanks,
Hitesh Patel.

Similar Messages

  • Checking Internet connectivity in AIR application

    Hi All,
    How to check internet connected or not in AIR app.
    Event.NETWORK_CHANGE only tells the change in the status,but it dosent
    tell if it is disabled or enabled.
    Please share if anything else can tell if internet is available.
    -Sheetal.

    You should also look into the service monitoring classes, especially the URLMonitor class.
    For example, the following ActionScript code uses an instance of the URLMonitor class to detect connectivity changes to the Adobe website:
    var monitor:URLMonitor = new URLMonitor(new URLRequest('http://www.example.com'));
    monitor.addEventListener(StatusEvent.STATUS, announceStatus);
    monitor.start();
    function announceStatus(e:StatusEvent):void {
        trace("Status change. Current status: " + monitor.available);
    Here's a JavaScript version:
    var monitor = new air.URLMonitor(new URLRequest('http://www.example.com'));
    monitor.addEventListener(StatusEvent.STATUS, announceStatus);
    monitor.start();
    function announceStatus(e:StatusEvent):void {
         trace("Status change. Current status: " + monitor.available);

  • Firefox won't detect coffee shop wireless internet connection, but explorer will, automatically

    Firefox won't detect coffee shop wireless internet connection, but explorer will, automatically

    that's fine, thank you
    but if it doesn't connect
    what's the alternative procedure
    what do I do

  • I have downloaded itunes, however everytime I open it up deos not detect my internet connection even though it is running?

    I have downloaded itunes, however everytime I open it up deos not detect my internet connection even though it is running.  I can goto other sites when I open up explorer, but itunes just will not connect.  Could someone assist?  I have windows 7.

    Set it up with SMB compliant names.. that means, short, no spaces and pure alphanumeric.
    Set a different name for 2.4ghz and 5ghz..
    Set security to WPA2 personal with pure alphanumeric password.. 10-20 characters is usually plenty.
    Set wireless channel for 2.4ghz to manual and try channels 11, 6, 1 in that order.

  • Adobe creative cloud desktop is not detecting my internet connection?

    adobe creative cloud desktop is not detecting my internet connection?

    i connected with the adobe people through 'contact an agent'.
    very helpful, they remote managed my desktop to fix the issue.
    apparently something to do with permissions not activated for adobe, not sure how and why this happens though, or why it was fine earlier and suddenly stoppped.
    they insisted it was to do with being on a wifi connection but that's not possible because i have my laptop right next to my desktop and that was working fine.
    it took about four hours to fix though, so be patient!

  • ITunes 8.1 works great but killed wireless internet connection

    I installed version 8.1 on both my laptop( PowerBook g4/ OS 10.4.11) and desktop (imac intel / OS 10.5) and after restarting the computer, the wireless internet connection stopped working on both.
    I would open Safari and it would be a blank page and and the circle would keep spinning.
    So I tried my laptop at a different wireless hotspot and had the same result.
    I then tried repairing permissions and I got a list of problems with iTunes/Network Utilities, they repaired and now when I open Safari I get the message that it can not connect to the internet.
    I do get an internet connection using ethernet on both.
    Any ideas on how to fix this problem?

    Did you by any chance also update the firmware on your Apple Airport Extreme (if that's what you have)?
    I thought 8.1 killed my connection to my Apple TV, but it was the faulty firmware (see reports elsewhere in these forums).
    Now that I have rolled back from 7.4.1 on my Airport I plan to try iTunes again (with white knuckles).
    -dan

  • IMAC Wireless Internet Connection Problems All Of A Sudden

    My Imac is well over a year and a bit old and has been able to connect to my wireless internet connection absolutely fine until the past week and a half. At first the connection wouldn't work and when I would turn my airport on and off and reset the router, it would eventually work, now that is not working at all. My airport status is either showing 'airport is turned on but is not connected to a network' or 'airport has a self-assigned ip address and may not be able to connect to the internet'
    I have formatted my imac twice and still no avail and the last format I tried to join wirelessly straight from boot but it wouldn't join saying 'there is a problem with the wireless connection and you're not connected to the internet.' the annoying thing is I can see the network sitting there and can't join it, my network is also unsecure so no need to input a password. All my home PC's and my Iphone and Blackberry find the network easily enough, although recently the Iphone has began showing only 1 bar of wifi connection.
    I am at my wits end as I am unable to connect at all now, I am all out of ideas and have been bashing my head off a wall for the past day without any connection at all.
    My router is a buffalo AirStation wireless G high power model, my IMAC is an intel core 2 duo 20", if you need anymore information of my hardware I will gladly provide it. I'm running MAC OSX Leopard 10.5, out the box as I've been unable to run any software updates as I can't connect to the internet.
    Please, if anyone can shed any light at all on this issue I would definately try anything.
    Thanks in advance and regards.
    Message was edited by: proxykillah

    Anytime you see a self-assigned IP address in your network prefs you know it surely is a problem
    with your router configuration. Power down all equip ... make sure modem is off for at least 5 minutes
    restart modem, restart iMac ... check your network pref on iMac and make sure it's not 169.x.x.x
    If so you will need to recapture the settings from your ISP's modem to the Buffalo.
    Always use a secure wireless connection (WEP, WPA, WPA2) or else the whole neighborhood will suck down your bandwidth the slow down what your paying for. I use Time Capsules or AEBS (Airport Extreme Base Stations) that allow you to stealth mode and lower signal output and make the device
    as a "closed network" ... meaning no one else can see and tap into your WIFI home network!
    802.11N is better than G. and especially when you can use dual bands 2.4 / 5GHz to stop various home interferences. The backup of Time Machine only makes life much easier also! Xtech

  • I want to listen to my music through my airport express but I also have a wireless internet connection!

    I want to listen to my music through my airport express but I also have a wireless internet connection!
    I think I might have been sold a jelly - I want to listen to my music wirelessly which is why I bought the Airport Express, but I also have a wireless internet connection - can I do both?

    David1854 wrote:
    I want to listen to my music through my airport express but I also have a wireless internet connection!
    I think I might have been sold a jelly - I want to listen to my music wirelessly which is why I bought the Airport Express, but I also have a wireless internet connection - can I do both?
    Do you mean to say you already have a wireless network setup and thought by buying the Airport Express you just could use it for wireless music alone?
    The Airport Express is chiefly a wireless router first, with the wireless music and printing as extra's.
    It can be used for streaming music alone, but I think it needs to talk to network time servers and thus it gets screwed up over time not being on the internet. Also by your using your computers wifi for music streaming, no internet with your other router.
    So it's a all Airport Express or back to a stereo mini cable.

  • Setting up a Wireless Internet Connection on Solaris 10

    I am new to the whole Solaris/unix world and I was just wondering how to set up a wireless internet connection with a solaris 10 machine. I have a linksys router hooked up to a cable modem and a linksys receiver hooked up via USB on the solaris machine. I would greatly appreciate any help anyone can give me.

    Was the router supplied by the ISP or was it bought separately? Are you able to get online when connecting the Mac directly to the router via an ethernet cable? Either way it's best to check the router settings to ensure they are correct.
    I’ve not come across the Zoom routers. Setup should be straight forward though, having gone to their website and downloaded the manual. Do the following:
    1. Plug one end of the RJ-11 cable (included in the box) to the router, the other end to your phone line via the micro-filter.
    2. Plug one end of the ethernet cable (again included in the box) to the appropriate port in the router, the other end to your Mac.
    3. Plug in the power cord and switch on
    4. Fire up your web browser on your Mac (Safari, Camino, Firefox etc)
    5. In the address bar of the web browser type 10.0.0.2 and hit the Return button
    6. A Network Password box will appear. This is to gain access to the router itself. The defaults are, Username = admin, Password = zoomadsl
    7. You’ll now enter the Basic Setup screen. It’s here where you enter the username and password supplied by your ISP. This is NOT your email username/password but your Internet access ones. If you are not sure or don't have them, call your ISP.
    8. Click Save Changes and then click Write Settings to Flash and Reboot. Once the router has reset itself and the Link light comes on and remains steady, you’re online.
    That’s it. Job done
    If you still cannot get access it may be worth resetting the router (there should be a small button in the back which requires the use of a pen or pencil to press) re-entering your ISP information as described above and trying again.
    Let me know how you get on.
    Kryten

  • Please, help me to set up wireless Internet connection. M...

             Please, help me to set up wireless Internet connection. My router is WRT54GS. I able to get online when computer is wired direct to VPN internet cable.
    First, I can’t open password request screen on http://192.168.1.1. 
    Second, when "Setup wizard" runs step #6 (“Check the router’s status”), the program asks for the password. Default password “admin” is rejected by the program and I can’t install Linksys software. Just in case I already pressed reset switch on the back of the router but to no avail. 
    Third, I don’t find out my Ethernet Adapter Wireless Network Connection and correct router’s IP address using ipconfig/all command after connecting WRT54GS with my computer. Ethernet adapter: DHCP disabled, subnet mask 255.255.255.0, IP address 10.32.132.193, default gate 10.32.132.1.
    Tell me please: what’s the matter?

    Pensive wrote:
             Please, help me to set up wireless Internet connection. My router is WRT54GS. I able to get online when computer is wired direct to VPN internet cable.
    First, I can’t open password request screen on http://192.168.1.1. 
    Second, when "Setup wizard" runs step #6 (“Check the router’s status”), the program asks for the password. Default password “admin” is rejected by the program and I can’t install Linksys software. Just in case I already pressed reset switch on the back of the router but to no avail. 
    Third, I don’t find out my Ethernet Adapter Wireless Network Connection and correct router’s IP address using ipconfig/all command after connecting WRT54GS with my computer. Ethernet adapter: DHCP disabled, subnet mask 255.255.255.0, IP address 10.32.132.193, default gate 10.32.132.1.
    Tell me please: what’s the matter?
    hi pensive ,
     Seems interesting , first do this -  push the reset button on the back of router .
    push it till 30 seconds , unplug the power cable and plug in the power cable back in After completion of 30 seconds.
    then try to log into , 192.168.1.1 again . with the password "admin".
    see if it reply?
    Else -
    strt>cmd>ipconfig /all - post the result ?
    pe@c3
    Message Edited by meteor on 01-09-2008 05:58 AM
    ~~~Nobudy's Perfect , i try To Be So ! Each n every moment of maH LYF , AND I THINK dat wats make Me "Different" From others....~~~

  • I have a MacBook Pro and all of a sudden  I cannot get wireless internet connectivity to my router or any other router, I get connectivity through the ethernet port but not wireless. This was working well till this morning

    I  have a MacBook Pro and all of a sudden  I cannot get wireless internet connectivity to my router or any other router, I get connectivity through the ethernet port but not wireless. This was working well till this morning

    BXB1905 wrote:
    I tried the Apple diagnostics it did not work.
    What do you mean it did not work!  What were the results of the diagnostic tests?
    Have you contacted your ISP to determine if the problem is on their end?  
    Have you changed your router channel?  Sometimes this resolves wireless problems.
    Your profile confirms you are using Lion.  Check out the following: 
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    Configuring 802.1X in Mac OS X Lion and Later

  • Why do i get a "no service" message when I am around a wireless internet connection

    I am again suffering from "no service" on my iphone and again, I'm in a very well connected area so I should not get this message again.

    "Wireless internet connection" - i.e. Wi-Fi - is not the same as cellular network connection.  You see ""No Service" when the cellular network from your carrier is not available in your location (indoors in particular).

  • Wireless internet connection is poor, wireless internet connection is poor

    Hi..
    I just purchase an iMac desktop and dont know much on how to use them. A couple of questions: when i set up the comp, it suggested that i could transfer my data from another computer to this. I clicked yes, followed the promts. It loaded for 4 hours then said it was succsefull. Both on my imac and my laptop. However, i cant find any of my information, photos, documents etc??
    Second question is: My wireless internet connection seems to be quite poor? Its slower than what is was on my laptop. I went to apple store, went to poor wirelss conection they wanted my serial number so i did that and it just had the loading symbol for aagggeess and nothing happened? ive tried to call Mac support, it said thats is currently closed but didnt say when they open.
    Any help will be appreciated!
    Thanks Cait

    Hello CAit & welcome!
    It loaded for 4 hours then said it was succsefull. Both on my imac and my laptop. However, i cant find any of my information, photos, documents etc??
    Look in the Users folder far another/imported ID to log into.
    Let's seehow the Wifi is under the other account.

  • Wireless Internet Connection Slow

    Whenever I access the internet on my Mini, the speed is slower than my other wireless internet connections on my PCs. Whenever I click a link or type in a URL to go to, it takes awhile for it to connect to the site (in the status bar, it will be stuck on the "Looking up -url-" for a bit); once it is connected, it loads fairly fast.
    However, using the same wireless internet network, the internet speed on my PC computers are significantly faster. Is there a way to solve this speed issue? I've gotten used to it somewhat, it would just be nicer if it was the normal, faster speed that it's supposed to be.
    -My ISP is Comcast
    -I use Airport Extreme to connect to the wireless network

    Might be a DNS issue, like we are talking about in this other thread:
    http://discussions.apple.com/thread.jspa?threadID=1619004&tstart=0
    If the DNS is misconfigured, the PCs may have different timeout threshholds from the Mac, and perhaps they jump to the next DNS quicker than the Mac does.
    Anytime you see lots of "looking up" messages, it's a good bet the DNSes are not configured right.

  • Slow wireless internet connection using airport extreme

    My wireless internet connection works but is very slow (<80kbs). The problem seems to be with the airport extreme (brand new, purchased in May 07) because my connection is very fast (>6mbs) when i connect by wire to the airport extreme base station. Signal strength is strong, so i can't figure out the problem. Any ideas?
    imac Mac OS X (10.4)

    BK37, I hope you've solved your problem by now. But if not, and for the benefit of others reading this post, let me share what I (finally) discovered when I had virtually the same problem, i.e. 8mbps wired speed, <50kbps wireless speed.
    I tried literally <span style="font-style:italic;">every suggestion I could find in the Airport discussions. First, I can assure you that changing the channel can give you incremental speed improvements in some instances, but for radical drops like yours, it's not the answer. Nor is turning off ipv6, or changing to WEP, or turning off Remote Access, or moving the AEBS, or or or or or....
    With such a radical drop in speed, it's most likely you have a hardware-related blockage somewhere. In my case it was my wiring configuration. My setup was France Telecom Livebox (ADSL modem / ethernet & 802.11g router) --> Ethernet cable --> Linksys RTP 3100 IP phone adapter / router --> Ethernet cable --> AEBS --> 3 Airport Express set up to extend network and run AirTunes. After eliminating every other possible problem, I narrowed it down to the Linksys router, which for reasons I have yet to figure out was trapping the speed to the AEBS. I ethernet cabled both the Linksys router and the AEBS directly to the Livebox and presto! Back to blazing speed.
    Hopefully this info will be helpful to you or some poor soul in the same situation, as I would have loved to have had it myself before I pulled every hair out of my head!
    iMac 21" Intel   Mac OS X (10.4.9)  

Maybe you are looking for

  • Windows Vista Home basic drivers for internet

    How do I get drivers for Windows Vista Home basic edition to work with Windows vista on my mac. Can't connect to internet on vista.

  • New coverage line created when update item instance

    Hi, Does anyone know why when I'm performing update item instance (CSI_ITEM_INSTANCE_PUB.UPDATE_ITEM_INSTANCE) somehow it will create a new coverage/contract record? This item initially is like to a coverage/contract but after perform update item ins

  • BW Back ground jobs in ERP

    Hi,   As we recently patched our systems (ERP & BW) all the background jobs in ERP are stopped.   We are extracting Logistics (LO) extractors,HR,FI,PMu2026etc data to BW.   How can I identify BW related Jobs in ERP and schedule them. Thanks

  • Deploying Toplink to Oracle AS 10g 10.1.2

    We are deploying our application developed in JDeveloper 10.1.3.3.0 and which includes TopLink, ADF Faces. What setups/libraries are specifically required to deploy to Oracle AS 10g 10.1.2 Thanks in advance Raam

  • I get an error 150:30 after my hard drive crashed

    I have then reinstalled all from my backup copy but get this message saying that "licensing for this product has stopped working".