×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    location errorcode 1016

    Hello again everyone,

    I want to get the longitude and latitude. From that place where the device is. So I made this:

    Code:
    alert("testpoint1");
    	curLocation = device.getServiceObject("Service.Location", "ILocation");
    	alert("testpoint2");
    	
    	var updateoptions = new Object();
    	updateoptions.PartialUpdates = false;
    	updateoptions.UpdateTimeOut = 60000000;
    	
    	var criteria = new Object();
    	criteria.LocationInformationClass = "BasicLocationInformation";
    	criteria.Updateoptions = updateoptions;
    	
    	var gpsResults = curLocation.ILocation.GetLocation(criteria);
    	
    	alert("testpoint3: " + gpsResults.ErrorCode);
    	if (gpsResults.ErrorCode == 0) {
    		alert("testpoint4");
    		var sensorResults = gpsResults.ReturnValue;
    		var latitude = sensorResults.Latitude;
    		var longitude = sensorResults.Longitude;
    		alert("latitude: " + latitude);
    		alert("longitude: " + longitude);
    	}else{
    		alert("testpoint5");
    	}
    But the only thing I get is the errorCode 1016. Where is the problem, is my code wrong? Or test I with the wrong device? I tested it with the N97.

    thanx tor help

    florianhaar

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

    Re: location errorcode 1016

    The error codes are defined in the library: http://library.forum.nokia.com/index...757320B7E.html

    ,
    //SAPI Error Codes
    // 0 - Success
    // 1000 - InvalidServiceArgument
    // 1001 - UnknownArgumentName
    // 1002 - BadArgumentType
    // 1003 - MissingArgument
    // 1004 - ServiceNotSupported
    // 1005 - ServiceInUse
    // 1006 - ServiceNotReady
    // 1007 - NoMemory
    // 1008 - HardwareNotAvailable
    // 1009 - ServerBusy
    // 1010 - EntryExists
    // 1011 - AccessDenied
    // 1012 - NotFound
    // 1013 - UnknownFormat
    // 1014 - GeneralError
    // 1015 - CancelSuccess
    // 1016 - ServiceTimedOut
    // 1017 - PathNotFound

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hello symbianyucca,

    i know that it is a timeout. But I don't know why it comes.

    thanx florianhaar

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

    Re: location errorcode 1016

    you could maybe just try increasing the timeout value, at least that was suggested earlier: http://discussion.forum.nokia.com/fo...door-condition

  5. #5
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hello,

    I had increased it, but nothing happens. Its the same failure. Other ideas?

    thanx
    florianhaar

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hello,

    I had increased it, but nothing happens. Its the same failure. Other ideas?

    thanx
    florianhaar

    Sorry, i thought my first reply was not send, but now i see it was.

  7. #7
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: location errorcode 1016

    In what conditions you are testing it? Outdoors / indoors?

    Please check as well that you have Assisted GPS and Network based positioning methods enabled, those should speed up getting the positioning fix.

    Br,
    Ilkka

  8. #8
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hi,

    I tested it in- and outdoor and i have all enabled. but there is the same errorcode of 1016. i don't know what i made wrong.
    Had someone more ideas?

    thanx
    florianhaar

  9. #9
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: location errorcode 1016

    Just for cross check, how it behave with other GPS application in phone? Do you get any positioning value?

  10. #10
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Oh, when use the Nokia GPS Tool, which is installed on the phone, than i don't get a connection to the sattelite. Could it be that when i am in the offline status, that i get no gps datas?

    thanx
    florianhaar

  11. #11
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: location errorcode 1016

    If the signal quality is good and you are in outside then you should get the signal (it takes 3~5 minutes to get first data). If the AGPS is enabled that reduce the time.

  12. #12
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Alright,
    I will test it and come back if there are more problems.

    thanx
    florianhaar

  13. #13
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hello again,
    by my signal quality is an x, because i have no sim-card in the slot. Must i have a sim-card in the phone?

    When I go to sattelitestatus, I get the error "no sattelitedata available"

    thanx
    florianhaar
    Last edited by florianhaar; 2010-08-10 at 10:40.

  14. #14
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    Re: location errorcode 1016

    Hello,

    I have solved the problem. When i am indoor, than there comes no gpssignal. When i hold the device out of the window i have a signal. So every time i want test my widget i must hold it out of the window :-)

    But it is good to know that I am not so bad in programming.

    thanx
    florianhaar

Similar Threads

  1. Google Api "1016 undefined"
    By lifenlim88 in forum Symbian Web Runtime
    Replies: 4
    Last Post: 2010-02-04, 07:46
  2. Replies: 8
    Last Post: 2009-11-12, 10:28
  3. HTTP errorcode -23
    By heuven in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-12-12, 10:36
  4. Very annoying errorcode "org.xml.sax.SAXParseException"
    By dragon-tmd in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2007-06-13, 13:49
  5. Errorcode 23 in gsoap
    By rhea_z in forum Symbian C++
    Replies: 0
    Last Post: 2007-01-17, 22:06

Posting Permissions

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