GPS location API - invalid location data file

I used the "iDen phone GPSDeveloperGuidelines 2003 - 2006-02-18.pdf" to create a code that get GPS information.

I'm using the JSR-179 that has the location API.

And i'm using netbeans 5.0. and a i-605 (simulator)

Everything seems ok, but when i run the app, it says it can't find the location data file.

An extract from the test data file'GPS.loc' is shown below:

$GPGGA,172801.265,1234.0000,N,15678.0000,E,0,03,4,333,M,0,M, ,0000*1F,20020914,2,30,2608.7512,N,08015.2543,W,29,32,8,0

$GPGGA,172802.265,0000.0000,N,00000.0000,E,0,00,4,0.0,M,0,M, ,0000*1F,20020914,2,30,2608.7512,N,08015.2543,W,29,32,8,0

$GPGGA,172803.265,2608.8244,N,08015.1683,W,1,03,4,200.0,M,0,M, ,0000*1F,20020914,2,30,2608.7512,N,08015.2543,W,29,32,8,0

I assume the emulator needs a data file because I get the run-time

exception'invalid location data file' while running.

That being the case - where does this file reside, what's the proper

data format and how do you add the data file to the project?

Thanks For Your Help!!!

[1101 byte] By [java_rulesa] at [2007-10-2 21:36:53]
# 1
this doen't exactly seem to be a JAVA problem now does it.
Norweeda at 2007-7-14 0:51:09 > top of Java-index,Java Essentials,Java Programming...
# 2

The line that is breaking everything is

AggregatePosition oap = c.getPosition();

The code i'm using is in JAVA... i really don't know what to do...

I'll give you some of the code...

void getViaPositionConnection() throws IOException {

com.motorola.iden.PositionConnection c = null;

String name = 搈position:delay=low?

try{

c = (PositionConnection)Connector.open(name);

AggregatePosition oap = c.getPosition();

if(c.getStatus() ==

com.motorola.iden.position.PositionConnection.POSITION_RESPONSE_RESTRICTED)

{

// means user has restricted permission to get position

}

else if(c.getStatus() ==

com.motorola.iden.position.PositionConnection.

POSITION_RESPONSE_NO_ALMANAC_OVERRIDE)

{

java_rulesa at 2007-7-14 0:51:09 > top of Java-index,Java Essentials,Java Programming...