Recently Google Earth received a update that broken the old ACTION_VIEW method.
We should switch to the Provider version of it and release an App update:
// GPX Viewer
file = new File(Environment.getExternalStorageDirectory() + "/GPSLogger/AppData/", exportingTask.getName() + ".gpx");
Uri uri = FileProvider.getUriForFile(GPSApplication.getInstance(), "eu.basicairdata.graziano.gpslogger.fileprovider", file);
getApplicationContext().grantUriPermission(TrackViewer.PackageName, uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setDataAndType(Uri.fromFile(file), "gpx+xml");
...
Recently Google Earth received a update that broken the old ACTION_VIEW method. We should switch to the Provider version of it and release an App update: