Cheers for the fast response!!
I actually read those two threads, but they explain about the syntax of the nmea file, not the gps location...
Has anyone altered with success the default location of the emulator?
"gps,1193789209,37.i42238833333,-122.0965333333,0,0,0" is the default file the emulator has.
I suppose the second and third parameters are lat and long. However, if so, I don't understand what the "i" is in the 37.i42238833333...isn't it supposed to be a number?
Also, in the "Track-Builder for Mock-Location-Providers" tutorial you state that one has to create a folder, like the test1 folder you created. Do I have to do this, or can I just replace the location file under gps?
What I do in the code is:
Using java Syntax Highlighting
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location = locationManager.getCurrentLocation("gps");
TextView tv = new TextView(this);
tv.setText("Current location is: lat: " + location.getLatitude() + " long: " + location.getLongitude());
Parsed in 0.031 seconds, using
GeSHi 1.0.8.4
You see that I use "gps". If I create a test1 folder would I need to use "test1" instead??? Does this make any sense?
Please let me know, I am sure many people are trying to find info on the same thing...
Thanks very much, any help is highly appreciated!!!