Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    159

    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

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,183

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

    here's one older discussion on the topic: http://developer.nokia.com/Community...n-S40-Platform

  3. #3
    Registered User
    Join Date
    May 2013
    Posts
    159

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

    I read older discussion but i didnt get any help from this....but i used some code
    Code:
    System.getProperty("com.nokia.mid.networkavailability");
    					String value = System.getProperty("com.nokia.network.access");
    It give the output ---na----.i want to tell one thing that my phone connected with wifi but i need internet connnectivity via wifi or gprs ...plz help me
    i have used also
    System.getProperty("com.nokia.mid.networkavailability");

    String value = System.getProperty("com.nokia.multisim.networkid");
    System.out.println("the value ...... of network access is "+value);
    it gives the output-----null----------.i got these output after ondevice debugging ......

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,183

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

    What do you need the connection for ?

    Basically could you try making a connection, and then showing if it fails ?

    Before the 501 (Asha platform 1.0) I don't think there is any API which would give you

  5. #5
    Registered User
    Join Date
    May 2013
    Posts
    159

    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....
    Last edited by vikranttanwar@; 2013-10-15 at 11:10.

  6. #6
    Registered User
    Join Date
    May 2013
    Posts
    159

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

    i got stuck help me

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,183

    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.

  8. #8
    Registered User
    Join Date
    May 2013
    Posts
    159

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

    thanx symianyucca for reply

Similar Threads

  1. Connect Internet using WiFi or GPRS by high preference to WiFi
    By sid_diu in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2011-04-15, 06:43
  2. how to check which httpconnection is available - gprs/edge/3g/wifi from midp
    By nekinpatel in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2011-04-14, 09:50
  3. Replies: 0
    Last Post: 2011-04-13, 16:21
  4. Laptop on Internet with E65 WiFi connection
    By Zaibach in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2009-03-03, 18:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×