×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Location
    Palermo,Italy
    Posts
    27

    Close connection 3g

    I set the access point in this way:

    Code:
    def set_accesspoint():
        apid = socket.select_access_point()
        if appuifw.query(u"Settare il punto di accesso predefinito","query") == True:
            f = open('e:\\apid.txt','w')
            f.write(repr(apid))
            f.close()
            appuifw.note(u"Punto d'accesso salvato ", "info")
            apo = socket.access_point(apid)
            socket.set_default_access_point(apo)
    the control of access point in this :

    Code:
    try:
        f=open('e:\\apid.txt','rb')
        setting = f.read()
        apid = eval(setting)
        f.close()
        if not apid == None :
            apo = socket.access_point(apid)
            socket.set_default_access_point(apo)
        else:
            set_accesspoint()
    except:
        set_accesspoint()
    and it's work good,but i don't know the way to close the 3g connection
    My new Blog-Site: http://www.coderpy.wordpress.com/

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Kyiv (Ukraine)
    Posts
    83

    Re: Close connection 3g

    close the 3g connection
    Code:
    apo.stop()
    but if this connection use another app you'll can't close this connection

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Palermo,Italy
    Posts
    27

    Re: Close connection 3g

    Thanks Maxim6630 now it's work fine...!!!
    My new Blog-Site: http://www.coderpy.wordpress.com/

Similar Threads

  1. close http connection in S40's
    By jiveright in forum Mobile Java General
    Replies: 2
    Last Post: 2007-06-04, 10:35
  2. GPRS Connection doesnt close correctly
    By Xen0n in forum Symbian
    Replies: 11
    Last Post: 2007-05-31, 07:26
  3. Close HTTP Connection
    By babro kebai in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-06-30, 09:53
  4. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-31, 18:45
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

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