Hello everyone, I am making an app that texts a parent every certain amount of minutes(selected on a spinner) with the child's (person with the phone that contains the app) location.
I was not getting this error when my code was like this:
And what do you mean by:"What do you get if you ask it too soon?"
Non-visible component providing location information, including longitude, latitude, altitude (if supported by the device), speed (if supported by the device), and address. This can also perform "geocoding", converting a given address (not necessarily the current one) to a latitude (with theLatitudeFromAddress
method) and a longitude (with theLongitudeFromAddress
method).In order to function, the component must have its
Location information might not be immediately available when an app starts. You'll have to wait a short time for a location provider to be found and used, or wait for the OnLocationChanged eventEnabled
property set to True, and the device must have location sensing enabled through wireless networks or GPS satellites (if outdoors).