the built-in GPS in the phone is not an app. it is not an application. it is a device just like RF radio or Bluetooth module.
Of course the GPS is not an app.
your app uses it to grab location information from the satellites.
And that, Beja, is the problem. My app is not running at that point!
And because my app is not running, Klaus's steps will not solve the problem, because there is no app running to listen to the GPS, no app running to get the results from the
GPS1_LocationChanged event, no app running to set a timer, and no app running to save the GPS location.
Klaus's steps will not solve the problem because there is no app running to execute the steps he is describing!
I'm sure you agree that if my app is not running, it can't do what Klaus suggests.
My app is not running 24/7. It cannot obtain the last known position from the GPS because it was not running at the time that the GPS last reported a position via the
GPS1_LocationChanged event. Therefore, Klaus's suggestion cannot be implemented.
The last time that the GPS received a signal, the GPS knew where it was. And if
my app had been running at that point, my app would
also know where it was. And it would be able to save that position, just like Klaus is suggesting. Unfortunately, Beja,
my app is not running!
As I said in my very first post, if a phone with a GPS is turned on and the GPS is enabled, and the phone is then taken inside where there is no GPS signal, then any app relying on the
GPS1_LocationChanged will not be able to get a location reading from the GPS. I have proven this occurs, it's not just theoretical.
Imagine that my app is installed on your phone. Imagine that my app is not running. In fact, imagine that my app has
never run on your phone. How does Klaus's code get run?
Okay, now imagine that the GPS was enabled on your phone. Imagine that you are outside your house, and that the GPS is receiving a signal. Now, go inside your house. Most likely, your phone's GPS will not receive a signal inside your house. Now, run my app. Do you agree that my app will not be able to obtain its location from your phone's GPS? Do you also agree that since there was no app running Klaus's code, that the results from that code will not be available to my app?
Hopefully, we're on the same page now. I apologise for the length of this post.