d

(:background_method)
function RegisterBackgroundEvent()
{
// begin SetGpsLocation();
Cout ("-------------------BEGIN RegisterBackgroundEvent-------------------------");
// Attempt to update current location, to be used by Sunrise/Sunset, and Weather.
// If current location available from current activity, save it in case it goes "stale" and can not longer be retrieved.
//var activityInfo = Activity.getActivityInfo();
var currentHeartRate = Activity.getActivityInfo().currentHeartRate;
Cout(" ActivityInfo currentHeartRate ...: " + currentHeartRate);

var location = Activity.getActivityInfo().currentLocation;
Cout(" GpsLocation location ...: " + location);


if (location) {