×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Accessing internet without user confirmation

    Is it possible in python?

    I found kind of a "hack" to do it on my 6680, but it's still under test: if you call builtin browser by means of appstart and providing an URL, browser is started and connection is opened without asking for confirmation. I don't know if it's due to phone being locked on a single operator (H3G), as my nokia 6600, not locked, does not work in this way: it asks me for confirmation as soon as I call browser.

    Another technical issue is that once I call the browser, my python program locks until I close the browser!
    I didn't yet tested appswitch or keypress to programmatically close it...

    But I did another test with keypress, to simulate keypress of YES key on confirmation dialog: it does not work, keypress is not received by the dialog.

    I think another method would be to use an hacked java midlet, which can be started by means of keypress: an hack for sending SMS by midlet without user confirmation already exists, and I really think same method could be used for network connections... but I don't know which is the class that we have to edit!

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Accessing internet without user confirmation

    Quote Originally Posted by cassioli View Post
    Is it possible in python?

    I found kind of a "hack" to do it on my 6680, but it's still under test: if you call builtin browser by means of appstart and providing an URL, browser is started and connection is opened without asking for confirmation.
    i am not getting what do you actually mean by confirmation but i guess its asking of access point or is it some thing else.

    Quote Originally Posted by cassioli View Post
    I don't know if it's due to phone being locked on a single operator (H3G), as my nokia 6600, not locked, does not work in this way: it asks me for confirmation as soon as I call browser.
    If the phone is locked for a single operator then its possible that it is not asking for any access point.

    regards
    Gaba88

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Accessing internet without user confirmation

    Quote Originally Posted by gaba88 View Post
    i am not getting what do you actually mean by confirmation but i guess its asking of access point
    yes, that's it.
    It asks even if there is just ONE access point...

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Accessing internet without user confirmation

    Quote Originally Posted by cassioli View Post
    yes, that's it.
    It asks even if there is just ONE access point...
    hi cassioli
    i am not sure about this but again i am repeating it if the phone is locked with a operator then i think it will not ask for any as the access point will be already fix.

    Enjoy Pythoning
    Gaba88

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Accessing internet without user confirmation

    Quote Originally Posted by gaba88 View Post
    hi cassioli
    i am not sure about this but again i am repeating it if the phone is locked with a operator then i think it will not ask for any as the access point will be already fix.

    Enjoy Pythoning
    Gaba88
    I know, but I need to get it working also on a not-locked phone!
    My 6600 keeps asking for confirmation to select the ONLY access point available...

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Accessing internet without user confirmation

    I got it!

    Code:
    import e32, urllib
    
    data = "Data sent by URLOPEN"
    data=urllib.urlencode({'data':data})
    print "Invio..."
    e32.start_server("c:\\system\\apps\\python\\my\\serverr.py")
    response = urllib.urlopen("http://jumpjack.altervista.org/prove/testphp.php?data=" + data).read()
    server.py:
    Code:
    import time,keypress
    from key_codes import *
    print "attendo..."
    time.sleep(10)
    print "Autorizzo..."
    keypress.simulate_key(EKeyLeftSoftkey,EKeyLeftSoftkey)
    Chek results on:
    http://jumpjack.altervista.org/prove/tracker.txt

    Works on 6680 and 6600.
    Last edited by cassioli; 2008-10-20 at 09:16.

  7. #7
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Accessing internet without user confirmation

    Also, there is an option in the default browser settings - to select the default access point. If a valid AP is selected there, it would not ask for AP when connecting...

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Accessing internet without user confirmation

    Quote Originally Posted by croozeus View Post
    Also, there is an option in the default browser settings - to select the default access point. If a valid AP is selected there, it would not ask for AP when connecting...

    Best Regards,
    Croozeus
    This does not work on 6600: browser HAS a default AP, but keeps asking me to press the YES key at first connection...

  9. #9
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    147

    Re: Accessing internet without user confirmation

    How about using socket.set_default_access_point(ap)?

    raf

  10. #10
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Accessing internet without user confirmation

    Quote Originally Posted by raf1hh View Post
    How about using socket.set_default_access_point(ap)?

    raf
    I think it limits the default AP for Python operations, rather it would ask for AP while other applications like web-browser require the connection.
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. Finding out internet sessions
    By atul_kulkarni in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2008-03-21, 15:45
  2. platformRequest to dial number - poor user experience
    By rob_savageminds in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-11-30, 06:01
  3. Replies: 1
    Last Post: 2004-10-27, 14:26
  4. Questionnaire on Forum Nokia user motivations
    By Maaike Spoor in forum General Development Questions
    Replies: 0
    Last Post: 2004-08-10, 09:45
  5. Questionnaire on Forum Nokia user motivations
    By Maaike Spoor in forum Symbian
    Replies: 0
    Last Post: 2004-08-10, 09:20

Posting Permissions

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