×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Detecting GPS connection ??

    Hi all,

    How could i know that any application on my device connected to GPS?

    Best regards
    Yosr Eman

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    You can use RPositionServer::GetModuleStatus and check each installed module to see whether or not it is active.

    Feel free to use google to look for code examples.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Detecting GPS connection ??

    May be this link will be useful to you.
    http://wiki.forum.nokia.com/index.ph...or_GPS_devices
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  4. #4
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    Thanks alot for your reply
    but i have a question, could i using "RPositionServer" get the connection to GPS even this connection was not opened via my application ?

    Best regards
    Yosr Eman

  5. #5
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Detecting GPS connection ??

    Quote Originally Posted by yosr eman View Post
    Thanks alot for your reply
    but i have a question, could i using "RPositionServer" get the connection to GPS even this connection was not opened via my application ?

    Best regards
    Yosr Eman
    you must read to get your answer
    http://wiki.forum.nokia.com/index.ph...60_3rd_Edition
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  6. #6
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    yes i get it now,

    but i still confused a little, could i determine which application on my device connected to GPS ?

    Best regards
    Yosr Eman
    Last edited by yosr eman; 2008-10-27 at 12:27.

  7. #7
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    No, but then why would you bother? Its not like you can do anything with the connection.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  8. #8
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    Quote Originally Posted by Paul.Todd View Post
    No, but then why would you bother? Its not like you can do anything with the connection.
    Sorry, No what?
    what i need is to get the application connected to the GPS.

    Best regards
    Yosr Eman

  9. #9
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    How is knowing the application going to help you?
    For example with our application if you killed the application, it would just reset the phone as it is a protected server.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  10. #10
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    Quote Originally Posted by Paul.Todd View Post
    How is knowing the application going to help you?
    It will help, this is what i need , could anybody help me knowing the application ?

    Best regards
    Yosr Eman

  11. #11
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    The answer is no, just like the telephony servers (and all other servers) do not expose a list of connected applications.

    All these servers base their architecture on the Symbian Client Server (IPC) implementation and the connections are private to the server (as they are sessions or subsessions to the server).

    What I was trying to get at is: what are you trying to accomplish? This will let me see if there is another solution to your initial problem.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  12. #12
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    what i want to know is "what is the application uses GPS" this is what i want to do.

    Best regards
    Yosr Eman

  13. #13
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    In that case the answer is no, there is no API, but as I said before, why would you want to know the applications, the only reason II can think of is to kill the application and this would result in system instability and corruption of data files.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  14. #14
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    76

    Re: Detecting GPS connection ??

    No, not for killing it, but as a spying.

  15. #15
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Detecting GPS connection ??

    As I said in my original post, you can use RPositionServer::GetModuleStatus to find out which GPS modules are active and have a connection attached.

    Whats more you can use RPositionServer::NotifyModuleStatusEvent to get notified when one of the position moduless comes online or goes offline.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. Connection times out after 10 requests...
    By QSIPhone in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-04-09, 17:29
  2. Detecting GPRS connection ?
    By tanc08 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-02-26, 14:07
  3. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-08-31, 18:47
  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
  •  
×