I went on a trip somewhere in the distance, and I didnāt have mobile access, but I thought that my GPS would work anyway, since the GPS transmitter just relies on satellites. I have the following code to get the GPS location:
mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener);
I tried to record my GPS coordinates, and they turned out to be empty.
Is there something that I am not doing right or that I do not understand?
What can I change so that my phone can record raw GPS data with or without network access?
source share